Question: When insert a column reports error:
sql: expected 0 arguments, got 6"
and I checked the code
- session_insert.go:341
if session.engine.dialect.URI().DBType == schemas.ORACLE && len(table.AutoIncrement) > 0 {
res, err := session.queryBytes("select seq_atable.currval from dual", args...)
if err != nil {
return 0, err
}
....
the args here is my insert arguments. like sess.Insert(bean), so when u query "select seq_atable.currval from dual" with args it reports an error.
Question: When insert a column reports error:
and I checked the code
the args here is my insert arguments. like
sess.Insert(bean), so when u query"select seq_atable.currval from dual"with args it reports an error.