diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-08-10 22:50:10 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-08-10 22:50:10 +0000 |
commit | 135dea6322ef925234c2fe9224536185b5cfcc46 (patch) | |
tree | 3a5aefe767c6879c60dcf193eb048e9d96d9cddc /src/interfaces/ecpg/lib/execute.c | |
parent | 633b5d5653d360bb6acbbc2f142f04a90372e32c (diff) | |
download | postgresql-135dea6322ef925234c2fe9224536185b5cfcc46.tar.gz postgresql-135dea6322ef925234c2fe9224536185b5cfcc46.zip |
Since PQoidStatus is deprecated, we should probably stop using it in
our own code ...
Diffstat (limited to 'src/interfaces/ecpg/lib/execute.c')
-rw-r--r-- | src/interfaces/ecpg/lib/execute.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/lib/execute.c b/src/interfaces/ecpg/lib/execute.c index 99177844717..a947e957a86 100644 --- a/src/interfaces/ecpg/lib/execute.c +++ b/src/interfaces/ecpg/lib/execute.c @@ -937,7 +937,7 @@ ECPGexecute(struct statement * stmt) break; case PGRES_COMMAND_OK: status = true; - sqlca.sqlerrd[1] = atol(PQoidStatus(results)); + sqlca.sqlerrd[1] = PQoidValue(results); sqlca.sqlerrd[2] = atol(PQcmdTuples(results)); ECPGlog("ECPGexecute line %d Ok: %s\n", stmt->lineno, PQcmdStatus(results)); if (!sqlca.sqlerrd[2] && (!strncmp(PQcmdStatus(results), "UPDATE", 6) @@ -1032,7 +1032,7 @@ ECPGdo(int lineno, const char *connection_name, char *query,...) * * Copyright (c) 2000, Christof Petig <christof.petig@wtal.de> * - * $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.19 2001/03/22 04:01:19 momjian Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.20 2001/08/10 22:50:10 tgl Exp $ */ PGconn *ECPG_internal_get_connection(char *name); @@ -1101,7 +1101,7 @@ execute_descriptor(int lineno, const char *query break; case PGRES_COMMAND_OK: status = true; - sqlca.sqlerrd[1] = atol(PQoidStatus(results)); + sqlca.sqlerrd[1] = PQoidValue(results); sqlca.sqlerrd[2] = atol(PQcmdTuples(results)); ECPGlog("ECPGexecute line %d Ok: %s\n", lineno, PQcmdStatus(results)); break; |