-
Notifications
You must be signed in to change notification settings - Fork 4
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
Postgresql UUID type #9
Comments
Hmmm. I guess you can fix your local problem with a patch. The problem is how to deal with extended SQL types in general. If we bind -11, we'll probably bind it incorrectly for some other database, no? In a portable way I guess the only options we have is to use the parameters argument of odbc_prepare (might already work?) or specify additional type mappings for the connection. Is that right? My ODBC is a bit rusty; long time ago I used that ... |
There is no unique identifier database for odbc, so yes, there might be clashes. odbc_prepare isn't of use as far as I can see, since there aren't any parameters for the query. I'm also into odbc on a pragmatic basis, so maybe the question is whether the warning can be suppressed. Is there any way one can "hook" Sdprintf messages from inside the prolog code? Or another way for redirecting them? |
Reading the code, it indicates you can use the option
|
I think you meant BTW, odbc_execute crashes when it gets one variable where no parameters are provided in odbc_prepare:
But it's the subject of another bug :) |
Test case:
Gives the warning:
Mapped unknown
fSqlType -11 to atom
I think the only solution is to add a new case in odbc.c (please correct me if there is an easier one). Before I propose a pull request, I wonder which is more convenient:
Add a
case -11:
line. Hard-coded but no dependencies.Add postgresql odbc as a dependency and add a
case PG_TYPE_UUID:
line. Looks better but adds a dependency.Can you help me with that?
The text was updated successfully, but these errors were encountered: