Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ORACLE insert bug #94

Open
clearcodecn opened this issue Jan 6, 2021 · 1 comment
Open

ORACLE insert bug #94

clearcodecn opened this issue Jan 6, 2021 · 1 comment

Comments

@clearcodecn
Copy link

clearcodecn commented Jan 6, 2021

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.

@clearcodecn clearcodecn mentioned this issue Jan 6, 2021
@clearcodecn
Copy link
Author

/cc @xormplus Urgent request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant