summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/misc.c
AgeCommit message (Collapse)Author
2009-11-24Made function better readable.Michael Meskes
2009-09-18Added patch by Bernd Helmle <bernd.helmle@credativ.de> that adds a low levelMichael Meskes
function that returns the current transaction status.
2009-09-03Do not set connection values if no connection is open.Michael Meskes
2009-08-07Added STRING datatype for Informix compatibility mode. This work isMichael Meskes
based on a patch send in by Böszörményi Zoltán <zb@cybertec.at>.
2009-06-118.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef listBruce Momjian
provided by Andrew.
2009-01-15NLS cleanup in ecpglibPeter Eisentraut
Replace leftover instances of _() by ecpg_gettext(), the latter being the correct way to refer to the library's message catalog, instead of the one of the program using the library. Drop NLS support for ecpg_log(), which is a debugging instrument similar to elog() in the backend. We cannot support NLS in the ecpg compatlib, because that requires ecpg_gettext, which is in ecpglib, which is not a dependency of compatlib. It doesn't seem worthwhile to worry about this, since the only translatable string is "out of memory", and gettext probably won't be able to do much without memory either. Adjust messages to project style.
2009-01-02Split the ecpg translation support into a separate catalog for the ecpgPeter Eisentraut
preprocessor and the library. This is useful for a number of reasons: * The preprocessor and the library are in some cases installed in separate packages and used by different classes of users. * The library MO files need a different versioning scheme to account for the soname. * The makefiles are simpler, more robust, and easier to maintain this way. (NLS web site was prone to break everytime a build rule changes.) * Translators might choose to focus on the ecpglib, because that is more user-facing. * There was virtually no overlap, so nothing is lost.
2008-12-15Fix cast-away-const problem as well as bogus calculation of required buffer ↵Tom Lane
size.
2008-12-15Do not try to change a const variable.Michael Meskes
2008-12-11Append major version number and for libraries soname major version numberPeter Eisentraut
to the gettext domain name, to simplify parallel installations. Also, rename set_text_domain() to pg_bindtextdomain(), because that is what it does.
2008-11-01Move from strcmp to strncmp to be more tolerant for changes to the parser.Michael Meskes
2008-05-16Add localization support to ecpg.Peter Eisentraut
Author: Euler Taveira de Oliveira <euler@timbira.com>
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-03Hopefully fixed some stuff that causes Windows builds to fail.Michael Meskes
2007-10-02ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> added thread-safeMichael Meskes
descriptor handling
2007-09-30Applied another patch by ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>Michael Meskes
to get memory allocation thread-safe. He also did some cleaning up.
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-03-29- Added patch by Magnus Hagander <magnus@hagander.net> to use nativeMichael Meskes
win32 threads. - Fixed regression tests to run threading tests.
2007-01-12Simplified regression handlingMichael Meskes
Added patch by Joachim to work around OpenBSD bug in regression suite.
2007-01-11Applied Joachim's patch for a --regression option.Michael Meskes
Made this option mark the .c files, so the environment variable is no longer needed. Created a special MinGW file with the special error message. Do not print port into log file when running regression tests.
2006-10-04pgindent run for 8.2.Bruce Momjian
2006-08-15Added lots of SoC stuff made by Joachim.Michael Meskes
Fixed broken newline on Windows. Fixed a nasty buffer underrun that only occured when using Informix no_indicator NULL setting on timestamps and intervals.
2006-08-08Made parser check for valid copy to/from stdin/stdout combinations.Michael Meskes
Lots of small changes in regression test suite
2006-07-31Added missing ECPGget_sqlca() callMichael Meskes
2006-07-31First small patches needed for regression testsMichael Meskes
2006-06-21Added some more coverity report patches send in by Martijn van Oosterhout ↵Michael Meskes
<kleptog@svana.org>.
2005-10-15Standard pgindent run for 8.1.Bruce Momjian
2005-09-12Fixed transaction command handling to not ignore savepoints and to correctly ↵Michael Meskes
check for errors.
2004-10-14Add 'int' cast for getpid() because some Solaris releases return longBruce Momjian
for getpid().
2004-10-09Make getpid() use %d consistently for printing.Bruce Momjian
2004-08-29Pgindent run for 8.0.Bruce Momjian
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-03-14Fix ecpg_sqlca_key_destructor to return void.Bruce Momjian
2004-03-14- Fixed Informix compat math functions to cope with the situationsMichael Meskes
where one argument takes the result. - Applied thread patches by Lee Kindness
2003-11-29$Header: -> $PostgreSQL Changes ...PostgreSQL Daemon
2003-11-24Rename USE_THREADS to ENABLE_THREAD_SAFETY to avoid name clash with Perl.Peter Eisentraut
Fixes compilation failure with --enable-thread-safety --with-perl and Perl 5.6.1.
2003-10-21Cope with platforms that offer LONGLONG_MIN in place of the C99-specTom Lane
LLONG_MIN. One example is AIX, per report from Andreas.
2003-09-09- Added Dave patch for Informix handling of numeric/int conversion.Michael Meskes
- Changed all new datatypes to lowercase. - Fixed rounding bug in numerical types.
2003-08-08Fix null checking of type decimal datums without indicator in InformixPeter Eisentraut
mode. from Dave Cramer
2003-08-04pgindent run.Bruce Momjian
2003-08-01Make ecpg SQLSTATE-aware. Map existing SQLCODE assignments to SQLSTATEs,Peter Eisentraut
rather than parsing the message. Add some documentation about embedded SQL.
2003-08-01- Added some Informix error codes in Informix mode.Michael Meskes
- Added just another pgtypeslib function.
2003-07-17Fixed some bugs in Informix compat functions.Michael Meskes
2003-07-01Use ISO dates in pgtypeslib by default.Michael Meskes
Applied patch by Philip Yarra to fix some thread issues. Added a new data type "decimal" which is mostly the same as our "numeric" but uses a fixed length array to store the digits. This is for compatibility with Informix and maybe others.
2003-06-26Wrap LONG_LONG_MIN redfinition around HAVE_LONG_LONG_INT_64.Bruce Momjian
2003-06-26Fix compile problem for missing LONG_LONG_MIN on BSD/OS.Bruce Momjian
2003-06-25Some systems need another header file included.Michael Meskes
2003-06-25Implemented Informix special way to treat NULLs, removed warnings, synced.Michael Meskes
2003-06-15Ecpg cleanups for prototypes.Bruce Momjian