Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5948a6e

Browse files
author
Michael Meskes
committed
In libecpg do not set an sqlda field that is 'reserved for future use' unless
we know what should be stored in there.
1 parent 9412606 commit 5948a6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/interfaces/ecpg/ecpglib/sqlda.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ ecpg_build_compat_sqlda(int line, PGresult *res, int row, enum COMPAT_MODE compa
228228
strcpy(fname, PQfname(res, i));
229229
sqlda->sqlvar[i].sqlname = fname;
230230
fname += strlen(sqlda->sqlvar[i].sqlname) + 1;
231-
sqlda->sqlvar[i].sqlformat = (char *) (long) PQfformat(res, i);
231+
/* this is reserved for future use, so we leave it empty for the time being */
232+
/* sqlda->sqlvar[i].sqlformat = (char *) (long) PQfformat(res, i);*/
232233
sqlda->sqlvar[i].sqlxid = PQftype(res, i);
233234
sqlda->sqlvar[i].sqltypelen = PQfsize(res, i);
234235
}

0 commit comments

Comments
 (0)