summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/execute.c
AgeCommit message (Collapse)Author
2008-05-16Add localization support to ecpg.Peter Eisentraut
Author: Euler Taveira de Oliveira <euler@timbira.com>
2008-03-01Fix unportable usages of tolower(). On signed-char machines, it is necessaryTom Lane
to explicitly cast the output back to char before comparing it to a char value, else we get the wrong result for high-bit-set characters. Found by Rolf Jentsch. Also, fix several places where <ctype.h> functions were being called without casting the argument to unsigned char; this is likewise unportable, but we keep making that mistake :-(. These found by buildfarm member salamander, which I will desperately miss if it ever goes belly-up.
2008-02-07- Fixed segfault in ecpg when using an array element.Michael Meskes
- Free all memory in auto-prepare mode.
2008-01-15Re-enabled variables in fetch/move command.Michael Meskes
2008-01-13Changed prototype for ECPGdo because some compilers don't like int/enum ↵Michael Meskes
aliasing in there.
2007-11-15pgindent run for 8.3.Bruce Momjian
2007-10-03Cleaned up ecpglib and renamed functions that do not need to be exported.Michael Meskes
Created export list for ecpglib.
2007-10-02ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> added thread-safeMichael Meskes
descriptor handling
2007-09-26Applied patch by ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> to get ↵Michael Meskes
prepare thread-safe.
2007-09-21Removed superfluous ECPGfree() call.Michael Meskes
2007-08-14- Finished major rewrite to use new protocol versionMichael Meskes
- Really prepare statements - Added more regression tests - Added auto-prepare mode - Use '$n' for positional variables, '?' is still possible via ecpg option - Cleaned up the sources a little bit
2007-06-11Fixed one memory leak in descriptor code.Michael Meskes
Made sure ecpg deletes output file in case of an error.
2007-04-27Inlined two functions to get rid of va_list problems on some archs.Michael Meskes
2007-03-29- Added patch by Magnus Hagander <magnus@hagander.net> to use nativeMichael Meskes
win32 threads. - Fixed regression tests to run threading tests.
2007-02-11Fixed multibyte handling as reported by <harada.toshi@oss.ntt.co.jp>.Michael Meskes
2007-02-02Cleaned up va_list handling. Hopefully this now works on all archs.Michael Meskes
2006-10-04pgindent run for 8.2.Bruce Momjian
2006-08-23Replaced double-quote-fix with a hopefully better version.Michael Meskes
Use initializer string length as size for character strings. Added ecpg_config.h file that is created via configure.
2006-08-22Descriptor values were quoted twice.Michael Meskes
Fixed some regression test problems.
2006-08-18Fixed a buffer overrun that was masked on Linux systems.Michael Meskes
2006-08-09Fixed some memory bugs that somehow reappeared.Michael Meskes
Also fixed a new Coverity report.
2006-08-08Cleaned up log output a little bit more.Michael Meskes
2006-08-02ynced parser and keyword list.Michael Meskes
Implemented EXEC SQL UNDEF. Applied first version of the regression test patch by Joachim Wieland <joe@mcknight.de>.
2006-07-28Variables should be free'ed only once.Michael Meskes
2006-07-28Removed superfluous commentMichael Meskes
2006-07-28Added more SoC changes by Joachim Wieland <joe@mcknight.de>:Michael Meskes
- SHOW statement puts result into a variable - COPY TO STDOUT works
2006-07-14Fix a passel of recently-committed violations of the rule 'thou shaltTom Lane
have no other gods before c.h'. Also remove some demonstrably redundant #include lines, mostly of <errno.h> which was added to c.h years ago.
2006-07-05Fixed remaining Coverity bugs.Michael Meskes
2006-06-26Added some more coverity report patches send in by Joachim Wieland ↵Michael Meskes
<joe@mcknight.de>.
2006-06-25Moved some free() calls that coverity correctly complains about.Michael Meskes
2006-06-21Added some more coverity report patches send in by Martijn van Oosterhout ↵Michael Meskes
<kleptog@svana.org>.
2006-06-21Added fixed from the coverity report send in by Joachim Wieland ↵Michael Meskes
<joe@mcknight.de> Added missing error handling in a few functions in ecpglib
2006-05-26Use E'' strings internally only when standard_conforming_strings =Bruce Momjian
'off'. This allows pg_dump output with standard_conforming_strings = 'on' to generate proper strings that can be loaded into other databases without the backslash doubling we typically do. I have added the dumping of the standard_conforming_strings value to pg_dump. I also added standard backslash handling for plpgsql.
2006-04-24Fixed memory leak bugs found by Martijn Oosterhout.Michael Meskes
2005-11-30- Made several variables "const char *" instead of "char *" as proposed by ↵Michael Meskes
Qingqing Zhou <zhouqq@cs.toronto.edu>. - Replaced all strdup() calls by ECPGstrdup(). - Set ecpg library version to 5.2. - Set ecpg version to 4.2.1.
2005-10-15Standard pgindent run for 8.1.Bruce Momjian
2005-07-04I have to admit that I got the case of the preprocessor symbol on amd64Bruce Momjian
wrong. __AMD64__ is not defined, __amd64__ is. Christof Petig
2005-07-02Add E'' to internally created SQL strings that contain backslashes.Bruce Momjian
Improve code clarity by using macros for E'' processing.
2005-06-02- Fixed memory leak in ecpglib by adding some missing free() commands.Michael Meskes
- Added patch by Gavin Scott <gavin@planetacetech.com> for Intel 64bit hardware.
2005-03-18Added patch by Christof Petig <christof@petig-baender.de> to work around gcc ↵Michael Meskes
bug on powerpc and amd64.
2004-08-29Pgindent run for 8.0.Bruce Momjian
2004-07-05- Fixed indicator in SET DESCRIPTOR.Michael Meskes
- Added special handling of descriptor header information. - Some code cleanup.
2004-07-04Made sure SET DESCRIPTOR accepts all data types including constants.Michael Meskes
2004-06-30Added SET DESCRIPTOR command.Michael Meskes
Note that this still has some bugs. The functionality is there though, it's just a matter of fixing the bugs now. Cleaned up error handling in preprocessor.
2004-06-27- Only use typedefs inside their scope.Michael Meskes
- Variables that are out of scope, were not removed all the time. - Make a varchar NULL set everything to 0 when not using indicators. - Synced parser.
2004-05-05- Fixed bug in adjust_informix that treated arrays as simple variables.Michael Meskes
- Synced parser again. - Synced lexer.
2004-01-28- Issue a warning if a cursor is declared but not opened.Michael Meskes
- Fixed prototype for ECPGprepared_statement to not moan about "const char" - Fixed parsing of nested structures. - Added option to parse header files.
2004-01-07More janitorial work: remove the explicit casting of NULL literals to aNeil Conway
pointer type when it is not necessary to do so. For future reference, casting NULL to a pointer type is only necessary when (a) invoking a function AND either (b) the function has no prototype OR (c) the function is a varargs function.
2003-12-03Added patch by Dave Cramer for array handling in ecpglib.Michael Meskes
2003-11-29$Header: -> $PostgreSQL Changes ...PostgreSQL Daemon