Commit 5948a6ee authored by Michael Meskes's avatar Michael Meskes

In libecpg do not set an sqlda field that is 'reserved for future use' unless

we know what should be stored in there.
parent 94126062
...@@ -228,7 +228,8 @@ ecpg_build_compat_sqlda(int line, PGresult *res, int row, enum COMPAT_MODE compa ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment