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

Parameter binding problem #248

Open
shawnhsy opened this issue May 7, 2018 · 1 comment
Open

Parameter binding problem #248

shawnhsy opened this issue May 7, 2018 · 1 comment

Comments

@shawnhsy
Copy link

shawnhsy commented May 7, 2018

found a bug in parameter binding:

this works fine

rset, err := session.PrepAndQry("select :1 as \"p1\", :2 as \"p2\", :1 as \"p1-again\" from dual ", "v-1" , "v-2")

but this:

rset, err := session.PrepAndQry("select :1 as \"p1\", :1 as \"p1-again\", :2 as \"p2\" from dual ", "v-1" , "v-2")

returns a " ORA-01008: not all variables bound" error

@tgulacsi
Copy link
Collaborator

tgulacsi commented May 7, 2018

Strange. Both should fail, as binding by position requires as many arguments, as many :number in the query.

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

2 participants