diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-04-12 17:17:23 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-04-12 17:17:23 +0000 |
commit | 52f77df613cea1803ce86321c37229626d9f213c (patch) | |
tree | bd9ac9f667f295cb65f4c448a5bb5a062d656b27 /src/interfaces/ecpg/include | |
parent | db4518729d85da83eafdacbcebaeb12618517595 (diff) | |
download | postgresql-52f77df613cea1803ce86321c37229626d9f213c.tar.gz postgresql-52f77df613cea1803ce86321c37229626d9f213c.zip |
Ye-old pgindent run. Same 4-space tabs.
Diffstat (limited to 'src/interfaces/ecpg/include')
-rw-r--r-- | src/interfaces/ecpg/include/ecpgerrno.h | 2 | ||||
-rw-r--r-- | src/interfaces/ecpg/include/ecpglib.h | 20 | ||||
-rw-r--r-- | src/interfaces/ecpg/include/ecpgtype.h | 2 | ||||
-rw-r--r-- | src/interfaces/ecpg/include/sql3types.h | 23 | ||||
-rw-r--r-- | src/interfaces/ecpg/include/sqlca.h | 3 |
5 files changed, 28 insertions, 22 deletions
diff --git a/src/interfaces/ecpg/include/ecpgerrno.h b/src/interfaces/ecpg/include/ecpgerrno.h index 37443badcd2..2a826988be5 100644 --- a/src/interfaces/ecpg/include/ecpgerrno.h +++ b/src/interfaces/ecpg/include/ecpgerrno.h @@ -14,7 +14,7 @@ /* first we have a set of ecpg messages, they start at 200 */ #define ECPG_UNSUPPORTED -200 -#define ECPG_TOO_MANY_ARGUMENTS -201 +#define ECPG_TOO_MANY_ARGUMENTS -201 #define ECPG_TOO_FEW_ARGUMENTS -202 #define ECPG_TOO_MANY_MATCHES -203 #define ECPG_INT_FORMAT -204 diff --git a/src/interfaces/ecpg/include/ecpglib.h b/src/interfaces/ecpg/include/ecpglib.h index 8b8dd3f3b5c..8b7e1ecd403 100644 --- a/src/interfaces/ecpg/include/ecpglib.h +++ b/src/interfaces/ecpg/include/ecpglib.h @@ -17,27 +17,27 @@ extern "C" bool ECPGprepare(int, char *, char *); bool ECPGdeallocate(int, char *); bool ECPGdeallocate_all(int); - char *ECPGprepared_statement(char *); - + char *ECPGprepared_statement(char *); + void ECPGlog(const char *format,...); - + /* print an error message */ void sqlprint(void); - + /* define this for simplicity as well as compatibility */ #define SQLCODE sqlca.sqlcode /* dynamic SQL */ - bool ECPGdo_descriptor(int line,const char *connection, - const char *descriptor,const char *query); - bool ECPGdeallocate_desc(int line,const char *name); - bool ECPGallocate_desc(int line,const char *name); + bool ECPGdo_descriptor(int line, const char *connection, + const char *descriptor, const char *query); + bool ECPGdeallocate_desc(int line, const char *name); + bool ECPGallocate_desc(int line, const char *name); void ECPGraise(int line, int code, char *str); bool ECPGget_desc_header(int, char *, int *); - bool ECPGget_desc(int, char *, int, ...); - + bool ECPGget_desc(int, char *, int,...); + #ifdef __cplusplus } diff --git a/src/interfaces/ecpg/include/ecpgtype.h b/src/interfaces/ecpg/include/ecpgtype.h index b19ba177c0c..8268e5495bd 100644 --- a/src/interfaces/ecpg/include/ecpgtype.h +++ b/src/interfaces/ecpg/include/ecpgtype.h @@ -50,7 +50,7 @@ extern "C" ECPGt_NO_INDICATOR /* no indicator */ }; - /* descriptor items */ + /* descriptor items */ enum ECPGdtype { ECPGd_count, diff --git a/src/interfaces/ecpg/include/sql3types.h b/src/interfaces/ecpg/include/sql3types.h index 3aa86f50f09..e7e153f34ca 100644 --- a/src/interfaces/ecpg/include/sql3types.h +++ b/src/interfaces/ecpg/include/sql3types.h @@ -2,12 +2,14 @@ * * Copyright (c) 2000, Christof Petig <christof.petig@wtal.de> * - * $Header: /cvsroot/pgsql/src/interfaces/ecpg/include/sql3types.h,v 1.3 2000/03/17 23:26:30 tgl Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/ecpg/include/sql3types.h,v 1.4 2000/04/12 17:17:01 momjian Exp $ */ /* chapter 13.1 table 2: Codes used for SQL data types in Dynamic SQL */ -enum { SQL3_CHARACTER=1, +enum +{ + SQL3_CHARACTER = 1, SQL3_NUMERIC, SQL3_DECIMAL, SQL3_INTEGER, @@ -16,23 +18,26 @@ enum { SQL3_CHARACTER=1, SQL3_REAL, SQL3_DOUBLE_PRECISION, SQL3_DATE_TIME_TIMESTAMP, - SQL3_INTERVAL, /* 10 */ - SQL3_CHARACTER_VARYING=12, + SQL3_INTERVAL, /* 10 */ + SQL3_CHARACTER_VARYING = 12, SQL3_ENUMERATED, SQL3_BIT, SQL3_BIT_VARYING, SQL3_BOOLEAN, SQL3_abstract /* the rest is xLOB stuff */ - }; +}; /* chapter 13.1 table 3: Codes associated with datetime data types in Dynamic SQL */ -enum { SQL3_DDT_DATE=1, +enum +{ + SQL3_DDT_DATE = 1, SQL3_DDT_TIME, SQL3_DDT_TIMESTAMP, SQL3_DDT_TIME_WITH_TIME_ZONE, SQL3_DDT_TIMESTAMP_WITH_TIME_ZONE, - - SQL3_DDT_ILLEGAL /* not a datetime data type (not part of standard) */ - }; + + SQL3_DDT_ILLEGAL /* not a datetime data type (not part of + * standard) */ +}; diff --git a/src/interfaces/ecpg/include/sqlca.h b/src/interfaces/ecpg/include/sqlca.h index 0fa4a624181..71987648b4d 100644 --- a/src/interfaces/ecpg/include/sqlca.h +++ b/src/interfaces/ecpg/include/sqlca.h @@ -21,7 +21,7 @@ extern "C" char sqlerrp[8]; long sqlerrd[6]; /* Element 0: empty */ - /* 1: OID of processed tuple if applicable */ + /* 1: OID of processed tuple if applicable */ /* 2: number of rows processed */ /* after an INSERT, UPDATE or */ /* DELETE statement */ @@ -48,6 +48,7 @@ extern "C" #ifdef __cplusplus } + #endif #endif |