projects
/
psqlodbc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d5511e
)
Back out previous revision. Can't see or recall why it was made and it just doesn...
author
Dave Page
<dpage@pgadmin.org>
Wed, 6 Oct 2004 11:16:15 +0000
(11:16 +0000)
committer
Dave Page
<dpage@pgadmin.org>
Wed, 6 Oct 2004 11:16:15 +0000
(11:16 +0000)
info.c
patch
|
blob
|
blame
|
history
info30.c
patch
|
blob
|
blame
|
history
diff --git
a/info.c
b/info.c
index 93294d966b0aef5cd6ee1815a207b5b82554fc4b..6cac848cf10c1d133b56fea36100220aaba3c3c9 100644
(file)
--- a/
info.c
+++ b/
info.c
@@
-783,15
+783,7
@@
PGAPI_GetInfo(
}
if (pcbInfoValue)
- {
- if (p) /* Don't include terminator for strings */
- if (conn->unicode)
- *pcbInfoValue = len - WCLEN;
- else
- *pcbInfoValue = len - 1;
- else
- *pcbInfoValue = len;
- }
+ *pcbInfoValue = len;
return result;
}
diff --git
a/info30.c
b/info30.c
index 968eab155ee3837c022df7a2c89e520375517532..f3a5a1db9a880bf6cb40e1b8925f98cf99f31c4b 100644
(file)
--- a/
info30.c
+++ b/
info30.c
@@
-401,15
+401,7
@@
PGAPI_GetInfo30(HDBC hdbc, UWORD fInfoType, PTR rgbInfoValue,
}
if (pcbInfoValue)
- {
- if (p) /* Don't include terminator for strings */
- if (conn->unicode)
- *pcbInfoValue = len - WCLEN;
- else
- *pcbInfoValue = len - 1;
- else
- *pcbInfoValue = len;
- }
+ *pcbInfoValue = len;
return result;
}