Michael Meskes
524d65d459
Fixed memory leak bugs found by Martijn Oosterhout.
20 years ago
Michael Meskes
150131d9d9
- Made several variables "const char *" instead of "char *" as proposed by 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.
20 years ago
Bruce Momjian
1dc3498251
Standard pgindent run for 8.1.
20 years ago
Bruce Momjian
8a79451152
I have to admit that I got the case of the preprocessor symbol on amd64
...
wrong. __AMD64__ is not defined, __amd64__ is.
Christof Petig
20 years ago
Bruce Momjian
74b49a8129
Add E'' to internally created SQL strings that contain backslashes.
...
Improve code clarity by using macros for E'' processing.
20 years ago
Michael Meskes
2d5d691d15
- Fixed memory leak in ecpglib by adding some missing free() commands.
...
- Added patch by Gavin Scott <gavin@planetacetech.com> for Intel 64bit hardware.
21 years ago
Michael Meskes
1f418555cf
Added patch by Christof Petig <christof@petig-baender.de> to work around gcc bug on powerpc and amd64.
21 years ago
Bruce Momjian
b6b71b85bc
Pgindent run for 8.0.
21 years ago
Michael Meskes
073f7312a4
- Fixed indicator in SET DESCRIPTOR.
...
- Added special handling of descriptor header information.
- Some code cleanup.
22 years ago
Michael Meskes
8715789928
Made sure SET DESCRIPTOR accepts all data types including constants.
22 years ago
Michael Meskes
90326c01c9
Added SET DESCRIPTOR command.
...
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.
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
Michael Meskes
6ccfc4f430
- Issue a warning if a cursor is declared but not opened.
...
- Fixed prototype for ECPGprepared_statement to not moan about "const char"
- Fixed parsing of nested structures.
- Added option to parse header files.
22 years ago
Neil Conway
192ad63bd7
More janitorial work: remove the explicit casting of NULL literals to a
...
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.
22 years ago
Michael Meskes
3819afa759
Added patch by Dave Cramer for array handling in ecpglib.
22 years ago
PostgreSQL Daemon
969685ad44
$Header: -> $PostgreSQL Changes ...
22 years ago
Michael Meskes
135ecf8d96
Re-added forgotten cache.
22 years ago
Michael Meskes
87758314ca
Made sure an internal array is not treated as a user defined one.
22 years ago
Michael Meskes
0262337ad3
Fixed bug with indicators when storage for the string is dynamically allocated.
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
6a0d6d0060
Added explicit casts for date/interval/timestamp.
22 years ago
Michael Meskes
42df5e311f
Started to create different error codes for different backend messages.
22 years ago
Michael Meskes
f207718b0c
More informix fixes.
23 years ago
Michael Meskes
91d60637cf
"char *" of course is not the same as "char []". So I had to fix the way ecpg treated the second one.
23 years ago
Michael Meskes
c7fddd3072
date, interval and timestamp data should be quoted.
23 years ago
Michael Meskes
23e4fc18a7
Fixed informix behaviour for select without into.
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
abd310a3b1
Allow constants in using clauses.
23 years ago
Bruce Momjian
4f70680177
Make ecpg thread safe.
...
Lee Kindness
23 years ago
Michael Meskes
26188e8c17
- Enable FETCH without INTO.
...
- Compatibility functions for INFORMIX handling of DECLARE statement.
23 years ago
Michael Meskes
7b85b730f5
More patches for informix compatibility.
23 years ago
Michael Meskes
999f12982e
Moved Informix stuff to its own compat library. Interval datetype is now fully functional.
23 years ago
Michael Meskes
89508a8492
More changes to pgtypeslib and set optimization to -O1.
23 years ago
Bruce Momjian
f1792b932c
Use PQfreemem() consistently, and document its use for Notify.
...
Keep PQfreeNotify() around for binary compatibility.
23 years ago
Michael Meskes
2e6f97560a
Started adding date and timestamp.
23 years ago
Peter Eisentraut
28efaf3ccd
Avoid mysterious warning about possibly uninitialized variable.
23 years ago
Michael Meskes
6fad73ed45
Some bugfixes for numerical library.
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
Michael Meskes
1a9b0613c1
- Applied error reporting patch by Matthew Vanecek
...
- Started with an Informix compatibility option.
23 years ago
Michael Meskes
cf8da4e9f0
Merged ecpg_big_bison back into HEAD
23 years ago
Bruce Momjian
e50f52a074
pgindent run.
23 years ago
Michael Meskes
a58930bbd5
Synced parser yet again.
...
Michael
23 years ago
Michael Meskes
0f865e17e2
Applied Lee Kindness' patch to fix one of memory allocation with floating point numbers.
24 years ago