projects
/
users
/
c2main
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9412606
)
In libecpg do not set an sqlda field that is 'reserved for future use' unless
author
Michael Meskes
<
[email protected]
>
Mon, 25 Apr 2011 11:43:22 +0000
(13:43 +0200)
committer
Michael Meskes
<
[email protected]
>
Mon, 25 Apr 2011 11:43:22 +0000
(13:43 +0200)
we know what should be stored in there.
src/interfaces/ecpg/ecpglib/sqlda.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/ecpglib/sqlda.c
b/src/interfaces/ecpg/ecpglib/sqlda.c
index e06f25e4874e7d9606758f7e9344e93044c5a60f..c08c61b5df15ae46748184bc5742f9944b8fb2ef 100644
(file)
--- a/
src/interfaces/ecpg/ecpglib/sqlda.c
+++ b/
src/interfaces/ecpg/ecpglib/sqlda.c
@@
-228,7
+228,8
@@
ecpg_build_compat_sqlda(int line, PGresult *res, int row, enum COMPAT_MODE compa
strcpy(fname, PQfname(res, i));
sqlda->sqlvar[i].sqlname = fname;
fname += strlen(sqlda->sqlvar[i].sqlname) + 1;
- sqlda->sqlvar[i].sqlformat = (char *) (long) PQfformat(res, i);
+ /* this is reserved for future use, so we leave it empty for the time being */
+ /* sqlda->sqlvar[i].sqlformat = (char *) (long) PQfformat(res, i);*/
sqlda->sqlvar[i].sqlxid = PQftype(res, i);
sqlda->sqlvar[i].sqltypelen = PQfsize(res, i);
}