Michael Meskes
d49b20fbe6
Applied patch by ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> to get prepare thread-safe.
18 years ago
Michael Meskes
3e77c8c6c6
Removed superfluous ECPGfree() call.
18 years ago
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
18 years ago
Michael Meskes
91411b6105
Fixed one memory leak in descriptor code.
...
Made sure ecpg deletes output file in case of an error.
19 years ago
Michael Meskes
c8577c6c7f
Inlined two functions to get rid of va_list problems on some archs.
19 years ago
Michael Meskes
ddcb5bbf76
- Added patch by Magnus Hagander <magnus@hagander.net> to use native
...
win32 threads.
- Fixed regression tests to run threading tests.
19 years ago
Michael Meskes
153affd058
Fixed multibyte handling as reported by <harada.toshi@oss.ntt.co.jp>.
19 years ago
Michael Meskes
fc8115d42f
Cleaned up va_list handling. Hopefully this now works on all archs.
19 years ago
Bruce Momjian
f99a569a2e
pgindent run for 8.2.
19 years ago
Michael Meskes
9bade3ff84
Replaced double-quote-fix with a hopefully better version.
...
Use initializer string length as size for character strings.
Added ecpg_config.h file that is created via configure.
19 years ago
Michael Meskes
54f5527606
Descriptor values were quoted twice.
...
Fixed some regression test problems.
19 years ago
Michael Meskes
46d61eb218
Fixed a buffer overrun that was masked on Linux systems.
19 years ago
Michael Meskes
e6e61afe16
Fixed some memory bugs that somehow reappeared.
...
Also fixed a new Coverity report.
19 years ago
Michael Meskes
79a1a2ec6b
Cleaned up log output a little bit more.
19 years ago
Michael Meskes
1fa6be6f69
ynced parser and keyword list.
...
Implemented EXEC SQL UNDEF.
Applied first version of the regression test patch by Joachim Wieland <joe@mcknight.de>.
19 years ago
Michael Meskes
76475a7eb5
Variables should be free'ed only once.
19 years ago
Michael Meskes
a27cb17788
Removed superfluous comment
19 years ago
Michael Meskes
72ba3cb50f
Added more SoC changes by Joachim Wieland <joe@mcknight.de>:
...
- SHOW statement puts result into a variable
- COPY TO STDOUT works
19 years ago
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.
19 years ago
Michael Meskes
956cbeb7ef
Fixed remaining Coverity bugs.
19 years ago
Michael Meskes
ea9ec780ed
Added some more coverity report patches send in by Joachim Wieland <joe@mcknight.de>.
20 years ago
Michael Meskes
17bab8c3fe
Moved some free() calls that coverity correctly complains about.
20 years ago
Michael Meskes
3f9aace723
Added some more coverity report patches send in by Martijn van Oosterhout <kleptog@svana.org>.
20 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
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.
20 years ago
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.
21 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