1 #ifndef POSTGRES_SQLCA_H
2 #define POSTGRES_SQLCA_H
5 #if defined(WIN32) || defined(__CYGWIN__)
6 #define PGDLLIMPORT __declspec (dllimport)
9 #endif /* __CYGWIN__ */
10 #endif /* PGDLLIMPORT */
12 #define SQLERRMC_LEN 150
27 char sqlerrmc
[SQLERRMC_LEN
];
31 /* Element 0: empty */
32 /* 1: OID of processed tuple if applicable */
33 /* 2: number of rows processed */
34 /* after an INSERT, UPDATE or */
35 /* DELETE statement */
40 /* Element 0: set to 'W' if at least one other is 'W' */
41 /* 1: if 'W' at least one character string */
42 /* value was truncated when it was */
43 /* stored into a host variable. */
46 * 2: if 'W' a (hopefully) non-fatal notice occurred
56 struct sqlca_t
*ECPGget_sqlca(void);
58 #ifndef POSTGRES_ECPG_INTERNAL
59 #define sqlca (*ECPGget_sqlca())