Michael Meskes
a96ad2fc74
Streamlined array handling code in libecpg a little bit, in the process fixing yet another incorrect log output.
16 years ago
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.
16 years ago
Tom Lane
85d02a6586
Redefine Datum as uintptr_t, instead of unsigned long.
...
This is more in keeping with modern practice, and is a first step towards
porting to Win64 (which has sizeof(pointer) > sizeof(long)).
Tsutomu Yamada, Magnus Hagander, Tom Lane
16 years ago
Michael Meskes
d7d5c6857b
If no result is given NOTFOUND should be returned. Check for empty result
...
string too.
16 years ago
Michael Meskes
fabf75cffc
Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to fix memory leak in decimal handling.
16 years ago
Bruce Momjian
d2e7afe54a
Remove unused ecpg variable.
16 years ago
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>.
16 years ago
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.
17 years ago
Peter Eisentraut
e1bdd07c3c
Add localization support to ecpg.
...
Author: Euler Taveira de Oliveira <euler@timbira.com>
18 years ago
Bruce Momjian
fdf5a5efb7
pgindent run for 8.3.
18 years ago
Michael Meskes
7793c6ecca
Cleaned up ecpglib and renamed functions that do not need to be exported.
...
Created export list for ecpglib.
18 years ago
Michael Meskes
b1110aaa8b
Added some more error logging.
19 years ago
Michael Meskes
b8f611cf4b
Simplified regression handling
...
Added patch by Joachim to work around OpenBSD bug in regression suite.
19 years ago
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.
19 years ago
Bruce Momjian
f99a569a2e
pgindent run for 8.2.
19 years ago
Michael Meskes
e8d1dcbfde
Fixed of by one variable size.
19 years ago
Michael Meskes
6e11202dbe
Made parser check for valid copy to/from stdin/stdout combinations.
...
Lots of small changes in regression test suite
19 years ago
Michael Meskes
a829da152c
Added fixed from the coverity report send in by Joachim Wieland <joe@mcknight.de>
...
Added missing error handling in a few functions in ecpglib
20 years ago
Michael Meskes
0251602fc9
Fixed two more memory leaks in ecpglib.
...
Synced parser.
20 years ago
Michael Meskes
f3dda5be89
Data transferred binary is now put into the variables verbatim.
...
Also added a test case for a binary cursor.
20 years ago
Bruce Momjian
1dc3498251
Standard pgindent run for 8.1.
20 years ago
Michael Meskes
f417ebf03a
- Check for NULL before checking whether argument is an array.
...
- Remove stary character from string quoting.
- Fixed check to report missing varchar pointer implementation.
20 years ago
Bruce Momjian
b6b71b85bc
Pgindent run for 8.0.
21 years ago
Michael Meskes
8715789928
Made sure SET DESCRIPTOR accepts all data types including constants.
22 years ago
Michael Meskes
e48cfacb84
Arrays can be read as arrays or as character strings now.
22 years ago
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.
22 years ago
Michael Meskes
e845adf31f
- Fixed bug in adjust_informix that treated arrays as simple variables.
...
- Synced parser again.
- Synced lexer.
22 years ago
PostgreSQL Daemon
969685ad44
$Header: -> $PostgreSQL Changes ...
22 years ago
Michael Meskes
87758314ca
Made sure an internal array is not treated as a user defined one.
22 years ago
Michael Meskes
f604b39c2f
- Applied some bug fixing patches by Dave Cramer <dave@fastcrypt.com>.
...
- Added protecting defines to include files.
22 years ago
Michael Meskes
df974272ec
Removed superfluous return statement in get_data.
22 years ago
Michael Meskes
723a9bde33
- Accept output variables for FETCH in DECLARE statement.
...
- Synced parser.
- Allowed C variables to carry the name of prepared statements.
- Added Informix handling of datatype converion errors.
22 years ago
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.
22 years ago
Bruce Momjian
089003fb46
pgindent run.
22 years ago
Peter Eisentraut
4f7df90db0
Make ecpg SQLSTATE-aware. Map existing SQLCODE assignments to SQLSTATEs,
...
rather than parsing the message. Add some documentation about embedded
SQL.
22 years ago
Michael Meskes
7a9c074cba
- Added some Informix error codes in Informix mode.
...
- Added just another pgtypeslib function.
22 years ago
Michael Meskes
45d8f61ff2
Added more compat stuff ot the parser.
22 years ago
Michael Meskes
c15b66ef82
Allow blanks at the end of numerical values.
22 years ago
Michael Meskes
f207718b0c
More informix fixes.
23 years ago
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.
23 years ago
Michael Meskes
4505653e54
Added just another compatibility level for Informix.
23 years ago
Michael Meskes
fd3ca524eb
Implemented Informix special way to treat NULLs, removed warnings, synced.
23 years ago
Michael Meskes
36fe7577f8
Added missing terminating '\0' char for data put into char *.
23 years ago
Michael Meskes
8902aaaa6c
Fixed fetch into char * and added missing prototype for an Informix function.
23 years ago
Bruce Momjian
4f70680177
Make ecpg thread safe.
...
Lee Kindness
23 years ago
Michael Meskes
7b85b730f5
More patches for informix compatibility.
23 years ago
Michael Meskes
89508a8492
More changes to pgtypeslib and set optimization to -O1.
23 years ago
Michael Meskes
2e6f97560a
Started adding date and timestamp.
23 years ago
Michael Meskes
a4f25b6a9c
Started working on a seperate pgtypes library. First test work. PLEASE test compilation on iother systems.
23 years ago
Bruce Momjian
e50f52a074
pgindent run.
23 years ago