- Fixed bug in PGTYPEStimestamp_sub that used pointers instead of the
values to substract.
+
+Mon, 12 May 2008 18:19:08 +0200
+
+ - Check for non-existant connection in prepare statement handling.
+ - Do not close files that weren't opened.
- Set pgtypes library version to 3.1.
- Set compat library version to 3.1.
- Set ecpg library version to 6.2.
struct sqlca_t *sqlca = ECPGget_sqlca();
PGresult *query;
- ecpg_init_sqlca(sqlca);
-
con = ecpg_get_connection(connection_name);
+ if (!ecpg_init(con, connection_name, lineno))
+ return false;
+
/* check if we already have prepared this statement */
this = find_prepared_statement(name, con, &prev);
if (this && !deallocate_one(lineno, ECPG_COMPAT_PGSQL, con, prev, this))
con = ecpg_get_connection(connection_name);
+ if (!ecpg_init(con, connection_name, lineno))
+ return false;
+
this = find_prepared_statement(name, con, &prev);
if (this)
return deallocate_one(lineno, c, con, prev, this);