Bruce Momjian
65e806cba1
pgindent run for 9.0
2010-02-26 02:01:40 +00:00
Michael Meskes
cedae13017
Fixed NaN/Infinity problems in ECPG for float/double/numeric/decimal by making it OS independant.
...
Patch done by Zoltán Böszörményi.
2010-02-02 16:09:12 +00:00
Michael Meskes
aa6ac35221
Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to add out-of-scope cursor support to native mode.
2010-01-26 09:07:32 +00:00
Michael Meskes
14cc1ed7ed
Made function better readable.
2009-11-24 16:30:31 +00:00
Michael Meskes
dacaeff5ae
Added patch by Bernd Helmle <bernd.helmle@credativ.de> that adds a low level
...
function that returns the current transaction status.
2009-09-18 13:13:32 +00:00
Michael Meskes
fe35c8e145
Do not set connection values if no connection is open.
2009-09-03 09:09:01 +00:00
Michael Meskes
5d34af421d
Added STRING datatype for Informix compatibility mode. This work is
...
based on a patch send in by Böszörményi Zoltán <zb@cybertec.at>.
2009-08-07 10:51:21 +00:00
Bruce Momjian
d747140279
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
...
provided by Andrew.
2009-06-11 14:49:15 +00:00
Peter Eisentraut
cb05ab81a8
NLS cleanup in ecpglib
...
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-15 11:52:55 +00:00
Peter Eisentraut
a3114e52f6
Split the ecpg translation support into a separate catalog for the ecpg
...
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.
2009-01-02 13:26:54 +00:00
Tom Lane
d1c24460bf
Fix cast-away-const problem as well as bogus calculation of required buffer size.
2008-12-15 19:07:48 +00:00
Michael Meskes
3f7e1e4b91
Do not try to change a const variable.
2008-12-15 15:34:07 +00:00
Peter Eisentraut
218b4e8dd8
Append major version number and for libraries soname major version number
...
to the gettext domain name, to simplify parallel installations.
Also, rename set_text_domain() to pg_bindtextdomain(), because that is what
it does.
2008-12-11 07:34:09 +00:00
Michael Meskes
492059daba
Move from strcmp to strncmp to be more tolerant for changes to the parser.
2008-11-01 19:53:35 +00:00
Peter Eisentraut
e1bdd07c3c
Add localization support to ecpg.
...
Author: Euler Taveira de Oliveira <euler@timbira.com>
2008-05-16 15:20:04 +00:00
Bruce Momjian
fdf5a5efb7
pgindent run for 8.3.
2007-11-15 21:14:46 +00:00
Michael Meskes
7793c6ecca
Cleaned up ecpglib and renamed functions that do not need to be exported.
...
Created export list for ecpglib.
2007-10-03 11:11:12 +00:00
Michael Meskes
c4a6c2f871
Hopefully fixed some stuff that causes Windows builds to fail.
2007-10-03 08:55:23 +00:00
Michael Meskes
0c2eb200d6
ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> added thread-safe
...
descriptor handling
2007-10-02 09:50:00 +00:00
Michael Meskes
60e83cec57
Applied another patch by ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>
...
to get memory allocation thread-safe. He also did some cleaning up.
2007-09-30 11:38:48 +00:00
Michael Meskes
635a0b9a86
- Finished major rewrite to use new protocol version
...
- 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-08-14 10:01:54 +00:00
Michael Meskes
ddcb5bbf76
- Added patch by Magnus Hagander <magnus@hagander.net> to use native
...
win32 threads.
- Fixed regression tests to run threading tests.
2007-03-29 12:02:24 +00:00
Michael Meskes
b8f611cf4b
Simplified regression handling
...
Added patch by Joachim to work around OpenBSD bug in regression suite.
2007-01-12 10:00:14 +00:00
Michael Meskes
5b88b85cad
Applied Joachim's patch for a --regression option.
...
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.
2007-01-11 15:47:34 +00:00
Bruce Momjian
f99a569a2e
pgindent run for 8.2.
2006-10-04 00:30:14 +00:00
Michael Meskes
b30da7ba5f
Added lots of SoC stuff made by Joachim.
...
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-15 06:40:20 +00:00
Michael Meskes
6e11202dbe
Made parser check for valid copy to/from stdin/stdout combinations.
...
Lots of small changes in regression test suite
2006-08-08 11:51:25 +00:00
Michael Meskes
4cd72b53b9
Added missing ECPGget_sqlca() call
2006-07-31 13:26:46 +00:00
Michael Meskes
c1c9b7c0c0
First small patches needed for regression tests
2006-07-31 10:15:31 +00:00
Michael Meskes
3f9aace723
Added some more coverity report patches send in by Martijn van Oosterhout <kleptog@svana.org>.
2006-06-21 11:38:07 +00:00
Bruce Momjian
1dc3498251
Standard pgindent run for 8.1.
2005-10-15 02:49:52 +00:00
Michael Meskes
c959d370bf
Fixed transaction command handling to not ignore savepoints and to correctly check for errors.
2005-09-12 11:57:53 +00:00
Bruce Momjian
5c267325ec
Add 'int' cast for getpid() because some Solaris releases return long
...
for getpid().
2004-10-14 20:23:46 +00:00
Bruce Momjian
67608a393b
Make getpid() use %d consistently for printing.
2004-10-09 02:46:42 +00:00
Bruce Momjian
b6b71b85bc
Pgindent run for 8.0.
2004-08-29 05:07:03 +00:00
Michael Meskes
03ad5da8f8
- Only use typedefs inside their scope.
...
- 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-06-27 12:28:42 +00:00
Bruce Momjian
48f3ddf991
Fix ecpg_sqlca_key_destructor to return void.
2004-03-14 14:47:33 +00:00
Michael Meskes
757fb0e5a9
- Fixed Informix compat math functions to cope with the situations
...
where one argument takes the result.
- Applied thread patches by Lee Kindness
2004-03-14 12:16:30 +00:00
PostgreSQL Daemon
969685ad44
$Header: -> $PostgreSQL Changes ...
2003-11-29 19:52:15 +00:00
Peter Eisentraut
8878cc4cd7
Rename USE_THREADS to ENABLE_THREAD_SAFETY to avoid name clash with Perl.
...
Fixes compilation failure with --enable-thread-safety --with-perl and Perl
5.6.1.
2003-11-24 13:16:22 +00:00
Tom Lane
7eb67fc98b
Cope with platforms that offer LONGLONG_MIN in place of the C99-spec
...
LLONG_MIN. One example is AIX, per report from Andreas.
2003-10-21 15:34:34 +00:00
Michael Meskes
fcdf0e22fc
- Added Dave patch for Informix handling of numeric/int conversion.
...
- Changed all new datatypes to lowercase.
- Fixed rounding bug in numerical types.
2003-09-09 10:46:42 +00:00
Peter Eisentraut
fbf1fd2650
Fix null checking of type decimal datums without indicator in Informix
...
mode.
from Dave Cramer
2003-08-08 13:17:58 +00:00
Bruce Momjian
089003fb46
pgindent run.
2003-08-04 00:43:34 +00:00
Peter Eisentraut
4f7df90db0
Make ecpg SQLSTATE-aware. Map existing SQLCODE assignments to SQLSTATEs,
...
rather than parsing the message. Add some documentation about embedded
SQL.
2003-08-01 13:53:36 +00:00
Michael Meskes
7a9c074cba
- Added some Informix error codes in Informix mode.
...
- Added just another pgtypeslib function.
2003-08-01 08:21:04 +00:00
Michael Meskes
7d32551a81
Fixed some bugs in Informix compat functions.
2003-07-17 07:54:29 +00:00
Michael Meskes
2bdd2e5dcf
Use ISO dates in pgtypeslib by default.
...
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-07-01 12:40:52 +00:00
Bruce Momjian
b143210639
Wrap LONG_LONG_MIN redfinition around HAVE_LONG_LONG_INT_64.
2003-06-26 01:45:04 +00:00
Bruce Momjian
095a0c83d5
Fix compile problem for missing LONG_LONG_MIN on BSD/OS.
2003-06-26 01:33:23 +00:00