mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
In libecpg do not set an sqlda field that is 'reserved for future use' unless
we know what should be stored in there.
This commit is contained in:
@ -228,7 +228,8 @@ ecpg_build_compat_sqlda(int line, PGresult *res, int row, enum COMPAT_MODE compa
|
|||||||
strcpy(fname, PQfname(res, i));
|
strcpy(fname, PQfname(res, i));
|
||||||
sqlda->sqlvar[i].sqlname = fname;
|
sqlda->sqlvar[i].sqlname = fname;
|
||||||
fname += strlen(sqlda->sqlvar[i].sqlname) + 1;
|
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].sqlxid = PQftype(res, i);
|
||||||
sqlda->sqlvar[i].sqltypelen = PQfsize(res, i);
|
sqlda->sqlvar[i].sqltypelen = PQfsize(res, i);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user