Michael Meskes
72ba3cb50f
Added more SoC changes by Joachim Wieland <joe@mcknight.de>:
...
- SHOW statement puts result into a variable
- COPY TO STDOUT works
2006-07-28 09:08:01 +00:00
Tom Lane
ae643747b1
Fix a passel of recently-committed violations of the rule 'thou shalt
...
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-14 05:28:29 +00:00
Michael Meskes
956cbeb7ef
Fixed remaining Coverity bugs.
2006-07-05 10:49:56 +00:00
Michael Meskes
ea9ec780ed
Added some more coverity report patches send in by Joachim Wieland <joe@mcknight.de>.
2006-06-26 09:20:09 +00:00
Michael Meskes
17bab8c3fe
Moved some free() calls that coverity correctly complains about.
2006-06-25 09:38:40 +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
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
2006-06-21 10:24:41 +00:00
Bruce Momjian
7a846ecc00
Use E'' strings internally only when standard_conforming_strings =
...
'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-05-26 23:48:54 +00:00
Michael Meskes
524d65d459
Fixed memory leak bugs found by Martijn Oosterhout.
2006-04-24 09:45:22 +00:00
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.
2005-11-30 12:49:49 +00:00
Bruce Momjian
1dc3498251
Standard pgindent run for 8.1.
2005-10-15 02:49:52 +00:00
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
2005-07-04 19:05:45 +00:00
Bruce Momjian
74b49a8129
Add E'' to internally created SQL strings that contain backslashes.
...
Improve code clarity by using macros for E'' processing.
2005-07-02 17:01:59 +00:00
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.
2005-06-02 12:35:11 +00:00
Michael Meskes
1f418555cf
Added patch by Christof Petig <christof@petig-baender.de> to work around gcc bug on powerpc and amd64.
2005-03-18 10:00:43 +00:00
Bruce Momjian
b6b71b85bc
Pgindent run for 8.0.
2004-08-29 05:07:03 +00:00
Michael Meskes
073f7312a4
- Fixed indicator in SET DESCRIPTOR.
...
- Added special handling of descriptor header information.
- Some code cleanup.
2004-07-05 09:45:54 +00:00
Michael Meskes
8715789928
Made sure SET DESCRIPTOR accepts all data types including constants.
2004-07-04 15:02:24 +00:00
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.
2004-06-30 15:01:58 +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
Michael Meskes
e845adf31f
- Fixed bug in adjust_informix that treated arrays as simple variables.
...
- Synced parser again.
- Synced lexer.
2004-05-05 15:03:04 +00:00
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.
2004-01-28 09:52:14 +00:00
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.
2004-01-07 18:56:30 +00:00
Michael Meskes
3819afa759
Added patch by Dave Cramer for array handling in ecpglib.
2003-12-03 08:49:17 +00:00
PostgreSQL Daemon
969685ad44
$Header: -> $PostgreSQL Changes ...
2003-11-29 19:52:15 +00:00
Michael Meskes
135ecf8d96
Re-added forgotten cache.
2003-11-10 20:28:30 +00:00
Michael Meskes
87758314ca
Made sure an internal array is not treated as a user defined one.
2003-11-08 19:46:27 +00:00
Michael Meskes
0262337ad3
Fixed bug with indicators when storage for the string is dynamically allocated.
2003-10-26 09:50:47 +00:00
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.
2003-09-18 13:12:23 +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
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
6a0d6d0060
Added explicit casts for date/interval/timestamp.
2003-07-25 16:10:26 +00:00
Michael Meskes
42df5e311f
Started to create different error codes for different backend messages.
2003-07-15 12:38:38 +00:00
Michael Meskes
f207718b0c
More informix fixes.
2003-07-08 12:11:35 +00:00
Michael Meskes
91d60637cf
"char *" of course is not the same as "char []". So I had to fix the way ecpg treated the second one.
2003-07-07 12:15:33 +00:00
Michael Meskes
c7fddd3072
date, interval and timestamp data should be quoted.
2003-07-04 12:00:52 +00:00
Michael Meskes
23e4fc18a7
Fixed informix behaviour for select without into.
2003-07-04 11:30:48 +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
Michael Meskes
4505653e54
Added just another compatibility level for Informix.
2003-06-26 11:37:05 +00:00
Michael Meskes
fd3ca524eb
Implemented Informix special way to treat NULLs, removed warnings, synced.
2003-06-25 10:44:21 +00:00
Michael Meskes
abd310a3b1
Allow constants in using clauses.
2003-06-20 12:00:59 +00:00
Bruce Momjian
4f70680177
Make ecpg thread safe.
...
Lee Kindness
2003-06-15 04:07:58 +00:00
Michael Meskes
26188e8c17
- Enable FETCH without INTO.
...
- Compatibility functions for INFORMIX handling of DECLARE statement.
2003-06-13 10:50:58 +00:00
Michael Meskes
7b85b730f5
More patches for informix compatibility.
2003-04-01 14:37:25 +00:00
Michael Meskes
999f12982e
Moved Informix stuff to its own compat library. Interval datetype is now fully functional.
2003-03-30 11:48:19 +00:00
Michael Meskes
89508a8492
More changes to pgtypeslib and set optimization to -O1.
2003-03-27 14:29:17 +00:00
Bruce Momjian
f1792b932c
Use PQfreemem() consistently, and document its use for Notify.
...
Keep PQfreeNotify() around for binary compatibility.
2003-03-25 02:44:36 +00:00
Michael Meskes
2e6f97560a
Started adding date and timestamp.
2003-03-20 15:56:50 +00:00