projects
/
psqlodbc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4963465
)
Fix SQL_MAX_IDENTIFIER_LEN per gborg bug ref: 1348
author
Dave Page
<dpage@pgadmin.org>
Mon, 1 Aug 2005 20:38:37 +0000
(20:38 +0000)
committer
Dave Page
<dpage@pgadmin.org>
Mon, 1 Aug 2005 20:38:37 +0000
(20:38 +0000)
info30.c
patch
|
blob
|
blame
|
history
diff --git
a/info30.c
b/info30.c
index d9b9273911a39f986c016d552e542285c790940e..bdd70cff4990b793580a38a2f565a9a7252f1801 100644
(file)
--- a/
info30.c
+++ b/
info30.c
@@
-264,8
+264,11
@@
PGAPI_GetInfo30(HDBC hdbc, UWORD fInfoType, PTR rgbInfoValue,
value = SQL_IS_INSERT_LITERALS | SQL_IS_INSERT_SEARCHED | SQL_IS_SELECT_INTO;
break;
case SQL_MAX_IDENTIFIER_LEN:
- len = 4;
- value = 32;
+ len = 2;
+ if (PG_VERSION_GT(conn, 7.2))
+ value = 64;
+ else
+ value = 32;
break;
case SQL_MAX_ROW_SIZE_INCLUDES_LONG:
len = 0;