1/* Processed by ecpg (regression mode) */
2/* These include files are added by the preprocessor */
6/* End of automatic include section */
7#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
9#line 1 "define_prelim.pgc"
11 * Test that the effects of these commands don't carry over to the next
12 * file named on the ecpg command line.
16/* Processed by ecpg (regression mode) */
17/* These include files are added by the preprocessor */
21/* End of automatic include section */
22 #define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
27#ifndef POSTGRES_SQLCA_H
28 #define POSTGRES_SQLCA_H
31#if defined(WIN32) || defined(__CYGWIN__)
32#define PGDLLIMPORT __declspec (dllimport)
35#endif /* __CYGWIN__ */
36#endif /* PGDLLIMPORT */
38 #define SQLERRMC_LEN 150
57 /* Element 0: empty */
58 /* 1: OID of processed tuple if applicable */
59 /* 2: number of rows processed */
60 /* after an INSERT, UPDATE or */
61 /* DELETE statement */
66 /* Element 0: set to 'W' if at least one other is 'W' */
67 /* 1: if 'W' at least one character string */
68 /* value was truncated when it was */
69 /* stored into a host variable. */
72 * 2: if 'W' a (hopefully) non-fatal notice occurred
84#ifndef POSTGRES_ECPG_INTERNAL
85 #define sqlca (*ECPGget_sqlca())
112 /* exec sql begin declare section */
121/* exec sql end declare section */
127 /* exec sql whenever sqlerror do sqlprint ( ) ; */
130 {
ECPGconnect(__LINE__, 0,
"ecpg1_regression" , NULL, NULL , NULL, 0);
177 ECPGt_char,(s),(
long)200,(
long)1,(200)*
sizeof(
char),
185 printf(
"i: %d, s: %s\n",
i, s);
213 /* test handling of a macro defined on the command line */
222 printf(
"original CMDLINESYM: %d\n",
i);
234 printf(
"redefined CMDLINESYM: %d\n",
i);
246 printf(
"redefined CMDLINESYM: %d\n",
i);
254 /* this macro should not have carried over from define_prelim.pgc */
bool ECPGdisconnect(int lineno, const char *connection_name)
bool ECPGconnect(int lineno, int c, const char *name, const char *user, const char *passwd, const char *connection_name, int autocommit)
bool ECPGdo(const int lineno, const int compat, const int force_indicator, const char *connection_name, const bool questionmarks, const int st, const char *query,...)
struct sqlca_t * ECPGget_sqlca(void)
char sqlerrmc[SQLERRMC_LEN]
struct sqlca_t::@172 sqlerrm