aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/include/sqlca.h
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-06-03 13:55:15 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-06-03 13:55:15 +0000
commit2a74511bf4a66bc878ebf1eb097fa68062b7233f (patch)
tree029b5baad7814b89022af886c4284d27331995d0 /src/interfaces/ecpg/include/sqlca.h
parent0b09955da8721c049d3f504cb9dcb85702e7fb8b (diff)
downloadpostgresql-2a74511bf4a66bc878ebf1eb097fa68062b7233f.tar.gz
postgresql-2a74511bf4a66bc878ebf1eb097fa68062b7233f.zip
From: Michael Meskes <meskes@topsystem.de>
+ Wed Jun 3 13:38:57 CEST 1998 + + - Made sqlca struct compatible with other systems. + - Give back a warning in case of truncation + - Changed the handling of OptimizableStmt since the old one broke + CREATE RULE + - Set library version to 2.3 + - Set version to 2.3.3
Diffstat (limited to 'src/interfaces/ecpg/include/sqlca.h')
-rw-r--r--src/interfaces/ecpg/include/sqlca.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/include/sqlca.h b/src/interfaces/ecpg/include/sqlca.h
index 7e99484d5ae..7d6c9994349 100644
--- a/src/interfaces/ecpg/include/sqlca.h
+++ b/src/interfaces/ecpg/include/sqlca.h
@@ -7,13 +7,37 @@ extern "C" {
struct sqlca
{
- int sqlcode;
+ char sqlcaid[8];
+ long sqlabc;
+ long sqlcode;
struct
{
int sqlerrml;
- char sqlerrmc[1000];
+ char sqlerrmc[70];
} sqlerrm;
+ char sqlerrp[8];
long sqlerrd[6];
+ /* Element 0: empty */
+ /* 1: empty */
+ /* 2: number of rows processed */
+ /* after an INSERT, UPDATE or*/
+ /* DELETE statement */
+ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ char sqlwarn[8];
+ /* Element 0: set to 'W' if at least one other is 'W' */
+ /* 1: if 'W' at least one character string */
+ /* value was truncated when it was */
+ /* stored into a host variable. */
+ /* 2: empty */
+ /* 3: empty */
+ /* 4: empty */
+ /* 5: empty */
+ /* 6: empty */
+ /* 7: empty */
+
+ char sqlext[8];
} sqlca;
#endif