summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/lib/ecpglib.c
AgeCommit message (Collapse)Author
2000-03-07*** empty log message ***Michael Meskes
2000-03-03*** empty log message ***Michael Meskes
2000-03-01*** empty log message ***Michael Meskes
2000-02-23*** empty log message ***Michael Meskes
2000-02-22*** empty log message ***Michael Meskes
2000-02-18*** empty log message ***Michael Meskes
2000-02-16*** empty log message ***Michael Meskes
2000-02-16*** empty log message ***Michael Meskes
2000-02-15*** empty log message ***Michael Meskes
2000-02-14*** empty log message ***Michael Meskes
2000-01-27*** empty log message ***Michael Meskes
2000-01-08This patch removes the initialization of ri in loop inBruce Momjian
quote_postgres(...) in ecpglib.c. The code in CVS reads: quote_postgres(char *arg, int lineno) { char *res = (char *) ecpg_alloc(2 * strlen(arg) + 3, lineno); int i, ri = 0; if (!res) return (res); res[ri++] = '\''; for (i = 0, ri=0; arg[i]; i++, ri++) { switch (arg[i]) { case '\'': res[ri++] = '\''; break; case '\\': res[ri++] = '\\'; break; default: ; } The problem here is that ri is reset to 0, thus overwriting the initial quote. Stephen Birch
1999-12-16*** empty log message ***Michael Meskes
1999-12-14This patch solves a couple of memory leaks in ecpglib.c. The patch isBruce Momjian
ok for both the development tree (CVS) and for 6.5.3. Stephen Birch
1999-12-07*** empty log message ***Michael Meskes
1999-11-23*** empty log message ***Michael Meskes
1999-11-22*** empty log message ***Michael Meskes
1999-11-02*** empty log message ***Michael Meskes
1999-10-08*** empty log message ***Michael Meskes
1999-09-27Hello,Bruce Momjian
Two patches included: - the first one enables the use of bool variables in fields which might become NULL. Up to now the lib told you that NULL is not a bool variable, even if you provide a indicator. - the second patch checks whether a value is null and issues an error if no indicator is provided. Sidenote: IIRC, the variable should be left alone if the value is NULL. ECPGlib sets it's value to 0 on NULL. Is this a violation of the standard? Regards Christof
1999-09-17*** empty log message ***Michael Meskes
1999-09-15*** empty log message ***Michael Meskes
1999-07-19*** empty log message ***Michael Meskes
1999-07-16Tired of seeing that 'unused variable' warning...Tom Lane
1999-07-08Test Case:Bruce Momjian
---------- exec sql begin declare section; short s ; unsigned short us; exec sql end declare section; exec sql create table test(s smallint, us smallint); exec sql commit; s = 1; us =32000; exec sql insert into test values( :s, :us ) ; <== error Error Message: "i4toi2: '-600309759' causes int2 underflow" Masaaki Sakaida
1999-06-29*** empty log message ***Michael Meskes
1999-06-25*** empty log message ***Michael Meskes
1999-05-25pgindent run over code.Bruce Momjian
1999-04-16*** empty log message ***Michael Meskes
1999-04-14*** empty log message ***Michael Meskes
1999-04-13*** empty log message ***Michael Meskes
1999-03-24*** empty log message ***Michael Meskes
1999-03-20*** empty log message ***Michael Meskes
1999-03-19I suggest the following portability patch, which does notBruce Momjian
change functionality, but makes the code more ANSI C'ish. My AIX xlc compiler barfs on all of these. Can someone please review and apply to current. <<port.patch>> Thanks Andreas
1999-03-07*** empty log message ***Michael Meskes
1999-03-05*** empty log message ***Michael Meskes
1999-02-28From: Michael Meskes <[email protected]>Marc G. Fournier
+ + Tue Feb 23 17:32:25 CET 1999 + + - Other than a struct a union itself cannot be specified as variable. + + Fri Feb 26 07:18:25 CET 1999 + + - Synced preproc.y with gram.y. + + Sat Feb 27 20:30:03 CET 1999 + + - Added automatic allocating for NULL pointers.
1999-02-23From: Michael Meskes <[email protected]>Marc G. Fournier
+ + 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
1999-02-21From: Michael Meskes <[email protected]>Marc G. Fournier
+ + Fri Feb 19 21:40:14 CET 1999 + + - Fixed bug in libecpg that caused it to start transactions only for + the first connection. + - Set library version to 2.7.1
1999-02-20From: Michael Meskes <[email protected]>Marc G. Fournier
See Changes file...
1999-01-21From: Michael Meskes <[email protected]>Marc G. Fournier
See attached file. Now accepts "exec sql whenever sqlwarning".
1998-10-03Changes from Michael Meskes:Thomas G. Lockhart
Check strdup calls for out of memory. Set library version to 2.6.2 Synced preproc.y and keywords.c with gram.y and keywords.c yet again. Set version to 2.4.3
1998-09-03Attached is a patch to remove the definitions of libpq's internalBruce Momjian
structs from libpq-fe.h, as we previously discussed. There turned out to be sloppy coding practices in more places than I had realized :-(, but all in all I think it was a well-worth-while exercise. I ended up adding several routines to libpq's API in order to respond to application requirements that were exposed by this work. I owe the docs crew updates for libpq.sgml to describe these changes. I'm way too tired to work on the docs tonight, however. This is the last major change I intend to submit for 6.4. I do want to see if I can make libpgtcl work with Tcl 8.0 before we go final, but hopefully that will be a minor bug fix.
1998-09-01OK, folks, here is the pgindent output.Bruce Momjian
1998-09-01Renaming cleanup, no pgindent yet.Bruce Momjian
1998-08-28From: Michael Meskes <[email protected]>Marc G. Fournier
This one is against the current archive (so it contains the one I send the other day). It should fix the AIX problems. Andreas, could you please try it? Thanks. + Wed Aug 26 16:17:39 CEST 1998 + + - Sync preproc.y with gram.y + + Thu Aug 27 15:32:23 CEST 1998 + + - Fix some minor glitches that the AIX compiler complains about + - Added patchlevel to library + + Fri Aug 28 15:36:58 CEST 1998 + + - Removed one line of code that AIX complains about since it was not + needed anyway + - Set library version to 2.6.1
1998-08-25From: Michael Meskes <[email protected]>Marc G. Fournier
+ + 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 +
1998-08-11This one cleans the cursor problems ecpg had so far. It is now ableBruce Momjian
to understand cursors with variables. Michael
1998-08-05From: Dr. Michael Meskes <[email protected]>Marc G. Fournier
So this should finally get cursors working. There was an ugly bug in it.
1998-07-07From: "Dr. Michael Meskes" <[email protected]>Marc G. Fournier
+ Thu Jul 2 20:30:14 CEST 1998 + + - Changed new style db name to allow connection types "tcp" and + "unix" only + + Tue Jul 7 15:14:14 CEST 1998 + + - Fixed some bugs in preproc.y + - Set version to 2.3.4