1998-02-05 16:46:43 +01:00
|
|
|
#ifndef POSTGRES_SQLCA_H
|
|
|
|
#define POSTGRES_SQLCA_H
|
|
|
|
|
2000-02-15 20:23:20 +01:00
|
|
|
#define SQLERRMC_LEN 70
|
|
|
|
|
1998-03-20 04:08:11 +01:00
|
|
|
#ifdef __cplusplus
|
1998-09-01 06:40:42 +02:00
|
|
|
extern "C"
|
|
|
|
{
|
1998-03-20 04:08:11 +01:00
|
|
|
#endif
|
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
struct sqlca
|
1998-02-26 05:46:47 +01:00
|
|
|
{
|
1998-09-01 06:40:42 +02:00
|
|
|
char sqlcaid[8];
|
|
|
|
long sqlabc;
|
|
|
|
long sqlcode;
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
int sqlerrml;
|
2000-02-15 20:23:20 +01:00
|
|
|
char sqlerrmc[SQLERRMC_LEN];
|
1998-09-01 06:40:42 +02:00
|
|
|
} sqlerrm;
|
|
|
|
char sqlerrp[8];
|
|
|
|
long sqlerrd[6];
|
|
|
|
/* Element 0: empty */
|
2000-04-12 19:17:23 +02:00
|
|
|
/* 1: OID of processed tuple if applicable */
|
1998-09-01 06:40:42 +02:00
|
|
|
/* 2: number of rows processed */
|
|
|
|
/* after an INSERT, UPDATE or */
|
|
|
|
/* DELETE statement */
|
|
|
|
/* 3: empty */
|
|
|
|
/* 4: empty */
|
|
|
|
/* 5: empty */
|
|
|
|
char sqlwarn[8];
|
1998-06-03 15:55:15 +02:00
|
|
|
/* Element 0: set to 'W' if at least one other is 'W' */
|
1998-09-01 06:40:42 +02:00
|
|
|
/* 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];
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct sqlca sqlca;
|
1998-02-26 05:46:47 +01:00
|
|
|
|
1998-03-20 04:08:11 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
1999-11-23 19:49:55 +01:00
|
|
|
#endif
|
1998-09-01 06:40:42 +02:00
|
|
|
|
1998-03-20 04:08:11 +01:00
|
|
|
#endif
|