-
Notifications
You must be signed in to change notification settings - Fork 562
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
Problems with detecting parameter markers #47
Comments
It seems is a problem with ODBC API ? |
If you really want help with this issue Jose, you're going to have to provide a lot more information. What version of pyodbc are you using? What system are you running on (Windows/Linux)? What version of Python are you using? Better still, provide some sample code that demonstrates the error. |
Hello keitherskine, thanks for reply. I had to step into pyodbc source to see the problem. Thanks, |
You found the source of the issue? Excellent. Is it worth letting everybody know what the error you received was, and what line of the pyodbc source code was affected by this? That would be helpful. |
https://github.com/mkleehammer/pyodbc/blob/master/src/params.cpp#L653 function bool PrepareAndBind The errors raises in: But the problems is in the value of variable ret. ODBC API returns that the query string is good. Maybe the problem is that Hive does not return an error. |
Perhaps the error message could be updated, but it does tell you what you need to know:
Parameter markers are the question marks "?". There are no question marks in the SQL (0 parameter markers) but you provided 12 parameters. |
pyodbc.ProgrammingError: ('The SQL contains 0 parameter markers, but 12 parameters were supplied', 'HY000')
I have this problem when using insert into x values (?,?)
The text was updated successfully, but these errors were encountered: