diff --git a/session_insert.go b/session_insert.go index dc37ae6..be996e9 100644 --- a/session_insert.go +++ b/session_insert.go @@ -339,7 +339,7 @@ func (session *Session) innerInsert(bean interface{}) (int64, error) { // for postgres, many of them didn't implement lastInsertId, so we should // implemented it ourself. if session.engine.dialect.URI().DBType == schemas.ORACLE && len(table.AutoIncrement) > 0 { - res, err := session.queryBytes("select seq_atable.currval from dual", args...) + res, err := session.queryBytes("select seq_atable.currval from dual") if err != nil { return 0, err }