projects
/
psqlodbc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a6b42d
)
Support setting of SQL_ATTR_ANSI_APP w/ODBCVER >= 3.51
author
Dave Page
<dpage@pgadmin.org>
Fri, 30 Jul 2004 12:50:38 +0000
(12:50 +0000)
committer
Dave Page
<dpage@pgadmin.org>
Fri, 30 Jul 2004 12:50:38 +0000
(12:50 +0000)
pgapi30.c
patch
|
blob
|
blame
|
history
diff --git
a/pgapi30.c
b/pgapi30.c
index 2a72938fad10059ec6a24507467acc90eb3495dd..5c07bdb9259b434b66a2011bb42816dc1b8af4bd 100644
(file)
--- a/
pgapi30.c
+++ b/
pgapi30.c
@@
-1510,6
+1510,12
@@
PGAPI_SetConnectAttr(HDBC ConnectionHandle,
mylog("PGAPI_SetConnectAttr %d\n", Attribute);
switch (Attribute)
{
+#if (ODBCVER >= 0x0351)
+ case SQL_ATTR_ANSI_APP:
+ if ((SQLUINTEGER)Value == SQL_AA_TRUE)
+ conn->unicode = 0;
+ break;
+#endif
case SQL_ATTR_METADATA_ID:
conn->stmtOptions.metadata_id = (SQLUINTEGER) Value;
break;