aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/preproc/ecpg.c
Commit message (Collapse)AuthorAge
* Improve formatting of --help output.Peter Eisentraut2002-10-18
|
* pgindent run.Bruce Momjian2002-09-04
|
* - Synced yet again.Michael Meskes2002-04-28
| | | | - Fixed a typo in a comment printed by ecpg.
* Fix minor syntax error.Tom Lane2002-03-21
|
* Added typedef patches and a new option '-c' to automatically create C ↵Michael Meskes2002-03-21
| | | | typedefs from SQL ones.
* Include sqlca.h automatically.Michael Meskes2002-01-10
|
* The result of getopt() should be compared to -1, not EOF, perTom Lane2002-01-10
| | | | pgsql-hackers discussion of this date.
* Another pgindent run. Fixes enum indenting, and improves #endifBruce Momjian2001-10-28
| | | | spacing. Also adds space for one-line comments.
* pgindent run on all C files. Java run to follow. initdb/regressionBruce Momjian2001-10-25
| | | | tests pass.
* - Synced preproc.y with gram.y.Michael Meskes2001-09-19
| | | | | | - Synced pgc.l with scan.l. - Synced keyword.c. - Include the remaining patches by Christof Petig <christof.petig@wtal.de>.
* Avoid #ifdef inside printf() ... that loses on platforms where printf()Tom Lane2001-08-28
| | | | is a macro.
* Add ecpg --help and --version. Renumber the exit status codes, which werePeter Eisentraut2001-08-24
| | | | documented wrong.
* pgindent run. Make it all clean.Bruce Momjian2001-03-22
|
* Remove HAVE_OPTARG per discussion in hackers list.Tatsuo Ishii2001-03-01
|
* Massive commits for SunOS4 port.Tatsuo Ishii2001-02-27
|
* Restructure the key include files per recent pghackers discussion: thereTom Lane2001-02-10
| | | | | | | | | | | are now separate files "postgres.h" and "postgres_fe.h", which are meant to be the primary include files for backend .c files and frontend .c files respectively. By default, only include files meant for frontend use are installed into the installation include directory. There is a new make target 'make install-all-headers' that adds the whole content of the src/include tree to the installed fileset, for use by people who want to develop server-side code without keeping the complete source tree on hand. Cleaned up a whole lot of crufty and inconsistent header inclusions.
* Third try. Sorry, I had a wrong path in my copy statement.Michael Meskes2000-11-07
|
* Remove NT-specific file open defines by defining our own open macros forBruce Momjian2000-06-02
| | | | "rb" and "wb".
* Ye-old pgindent run. Same 4-space tabs.Bruce Momjian2000-04-12
|
* *** empty log message ***Michael Meskes2000-03-09
|
* *** empty log message ***Michael Meskes2000-03-07
|
* *** empty log message ***Michael Meskes2000-02-17
|
* *** empty log message ***Michael Meskes2000-01-27
|
* *** empty log message ***Michael Meskes2000-01-18
|
* Put back erroneously-removed definition of 'defines' variable.Tom Lane1999-12-26
|
* *** empty log message ***Michael Meskes1999-12-23
|
* The first fix is to allow an input file with a relative path and withoutBruce Momjian1999-12-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a ".pgc " extension. The second patch fixes a coredump when there is more than one input file (in that case, cur and types were not set to NULL before processing the second f ile) The patch below modifies the accepted grammar of ecpg to accept FETCH [direction] [amount] cursor name i.e. the IN|FROM clause becomes optional (as in Oracle and Informix). This removes the incompatibility mentioned in section "Porting From Other RDBMS Packages" p169, PostgreSQL Programmer's Guide. The grammar is modified in such a way as to avoid shift/reduce conflicts. It does not accept the statement "EXEC SQL FETCH;" anymore, as the old grammar did (this seems to be a bug of the old grammar anyway). This patch cleans up the handling of space characters in the scanner; some patte rns require \n to be in {space}, some do not. A second fix is the handling of cpp continuati on lines; the old pattern did not match these. The parser is patched to fix an off-by-one error in the #line directives. The pa rser is also enhanced to report the correct location of errors in declarations in the "E XEC SQL DECLARE SECTION". Finally, some right recursions in the parser were replaced by left-recursions. This patch adds preprocessor directives to ecpg; in particular EXEC SQL IFDEF, EXEC SQL IFNDEF, EXEC SQL ELSE, EXEC SQL ELIF and EXEC SQL ENDIF "EXEC SQL IFDEF" is used with defines made with "EXEC SQL DEFINE" and defines, specified on the command line with -D. Defines, specified on the command line are persistent across multiple input files. Defines can be nested up to a maximum level of 128 (see patch). There is a fair amount of error checking to make sure directives are matched properly. I need preprocessor directives for porting code, that is written for an Informix database, to a PostgreSQL database, while maintaining compatibility with the original code. I decided not to extend the already large ecpg grammar. Everything is done in the scanner by adding some states, e.g. to skip all input except newlines and directives. The preprocessor commands are compatible with Informix. Oracle uses a cpp replacement. Rene Hogendoorn
* *** empty log message ***Michael Meskes1999-12-08
|
* Re-add getopt.h check, remove NT-specific tests for it.Bruce Momjian1999-07-19
|
* Remove getopt configure check.Bruce Momjian1999-07-19
|
* Update ecpg compile.Bruce Momjian1999-07-18
|
* Add getopt test.Bruce Momjian1999-07-18
|
* Update configure include checks.Bruce Momjian1999-07-18
|
* Move some system includes into c.h, and remove duplicates.Bruce Momjian1999-07-17
|
* pgindent run over code.Bruce Momjian1999-05-25
|
* *** empty log message ***Michael Meskes1999-04-14
|
* From: Michael Meskes <Michael_Meskes@topmail.de>Marc G. Fournier1999-02-23
| | | | | | | | | | | | | | | | | + + Son Feb 21 14:10:47 CET 1999 + + - Fixed variable detection in libecpg. + + Mon Feb 22 19:47:45 CET 1999 + + - Added 'at <db_connection>' option to all commands it is apllicable + to. Due to changing the API of some libecpg functions this + requires me to increase the major version number. + - Synced pgc.l with scan.l. + - Added support for unions. + - Set library version to 3.0.0 + - Set ecpg version to 3.0.0
* From: Michael Meskes <Michael_Meskes@topmail.de>Marc G. Fournier1999-02-20
| | | | See Changes file...
* Apply Win32 patch from Horak Daniel.Bruce Momjian1999-01-17
|
* From: Michael Meskes <Michael.Meskes@usa.net>Marc G. Fournier1998-12-22
| | | | | | | | | | | | | + +Wed Dec 9 11:24:54 MEZ 1998 + + - Synced preproc.y with gram.y and the keywords.c files to add CASE + statement. + +Tue Dec 22 14:16:11 CET 1998 + + - Synced preproc.y with gram.y for locking statements. + - Set version to 2.4.5
* OK, folks, here is the pgindent output.Bruce Momjian1998-09-01
|
* Renaming cleanup, no pgindent yet.Bruce Momjian1998-09-01
|
* From: Michael Meskes <meskes@online-club.de>Marc G. Fournier1998-08-25
| | | | | | | | | | | | | | | | | | | | | | | + + Fri Aug 14 12:44:21 CEST 1998 + + - Added EXEC SQL DEFINE statement + - Set version to 2.4.0 + + Tue Aug 18 09:24:15 CEST 1998 + + - Removed keyword IS from DEFINE statement + - Added latest changes from gram.y + - Removed duplicate symbols from preproc.y + - Initialize sqlca structure + - Added check for connection to ecpglib + - Set version to 2.4.1 + + Thu Aug 20 15:31:29 CEST 1998 + + - Cleaned up memory allocation in ecpglib.c + - Set library version to 2.6 +
* This one cleans the cursor problems ecpg had so far. It is now ableBruce Momjian1998-08-11
| | | | | | to understand cursors with variables. Michael
* From: Dr. Michael Meskes <meskes@online-club.de>Marc G. Fournier1998-08-05
| | | | So this should finally get cursors working. There was an ugly bug in it.
* From: Michael Meskes <meskes@topsystem.de>Marc G. Fournier1998-05-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Apr 28 14:48:41 CEST 1998 - Put operator "->" back into parser. Note that :foo->bar means the C term, but :foo ->bar means the operator "->". Tue Apr 28 15:49:07 CEST 1998 - Added exec sql disconnect command. - Allow varchar in C to be written in uppercase too. - Added whenever option "do break;" Wed Apr 29 09:17:53 CEST 1998 - Corrected parsing of C comments. - Also allow C++ style comments. - Make sure not found is only checked after commands that could return it. - Added error codes, see ecpgerror.h for details. - Added "exec sql <TransactionStmt> release" as disconnect statement for compatibility issues. Thu Apr 30 10:42:10 CEST 1998 - Added a -t option to disable automatic transaction start. - Added sqlerrd[] to sqlca struct. - Give back number of tuples affect in sqlca.sqlerrd[2]. Thu Apr 30 13:36:02 CEST 1998 - Make the return code different in case of different errors. Wed May 6 11:42:48 CEST 1998 - Free memory if possible - Some bugfixes for bugs I found while changing the memory allocation code - Now able to fill complete array with one call (see test1.pgc for an example) - Set version to 2.3.0 - Set library version to 2.1
* From: Michael Meskes <meskes@topsystem.de>Marc G. Fournier1998-04-24
| | | | | | | | | | | | | | | | | | + Thu Apr 23 09:27:16 CEST 1998 + + - Also allow call in whenever statement with the same functionality + as do. + + Thu Apr 23 12:29:28 CEST 1998 + + - Also rewrote variable declaration part. It is now possible to + declare more than one variable per line. + - Set version to 2.1.0 + + Fri Apr 24 13:50:15 CEST 1998 + + - Fixed some bugs. + - Set version to 2.1.1
* Upgrade ECPG to 2.0Marc G. Fournier1998-04-21
| | | | Michael Meskes <meskes@topsystem.de>
* Cleanup of compiler warnings.Bruce Momjian1998-04-06
|
* Here's my next patch to bring ecpg to version 1.1. It now correctlyBruce Momjian1998-03-20
| | | | | | handles all transaction commands and the exec sql include command. Michael Meskes