Michael Meskes
a2b2565fc9
This routine was calling ecpg_alloc to allocate to memory but did not
...
actually check the returned pointer allocated, potentially NULL which
could be the result of a malloc call.
Issue noted by Coverity, fixed by Michael Paquier <michael@otacoo.com >
2015-08-12 13:57:57 +02:00
Michael Meskes
35d5d962e1
Some cleanup in ecpg code:
...
Use bool as type for booleans instead of int.
Do not implicitely cast size_t to int.
Make the compiler stop complaining about unused variables by adding an empty statement.
2010-11-02 18:12:01 +01:00
Michael Meskes
816b008eaf
Applied patch by Itagaki Takahiro to fix incorrect status calculation in
...
ecpglib. Instead of parsing the statement just as ask the database server. This
patch removes the whole client side track keeping of the current transaction
status.
2010-10-14 17:55:07 +02:00
Magnus Hagander
9f2e211386
Remove cvs keywords from all files.
2010-09-20 22:08:53 +02:00
Michael Meskes
555a02f910
Added a configure test for "long long" datatypes. So far this is only used in ecpg and replaces the old test that was kind of hackish.
2010-05-25 14:32:55 +00:00
Michael Meskes
15ab0e9a60
Ecpg now accepts "long long" datatypes even if "long" is 64bit wide. This used to cover the equally long "long long" type. This patch closes bug #5464 .
2010-05-20 22:10:46 +00:00
Bruce Momjian
65e806cba1
pgindent run for 9.0
2010-02-26 02:01:40 +00:00
Michael Meskes
a96ad2fc74
Streamlined array handling code in libecpg a little bit, in the process fixing yet another incorrect log output.
2010-02-04 09:41:35 +00:00
Michael Meskes
bf69b535c0
Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to add DESCRIBE [OUTPUT] statement to ecpg.
2010-01-15 10:44:39 +00:00
Michael Meskes
6d4a351fcb
Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to add sqlda support to
...
ecpg in both native and compatiblity mode.
2010-01-05 16:38:23 +00:00
Michael Meskes
0754b391f3
Removed some unneeded variables and comparisons
2009-05-20 16:13:18 +00:00
Michael Meskes
fa0dc92fd8
- Fixed segfault in ecpg when using an array element.
...
- Free all memory in auto-prepare mode.
2008-02-07 11:09:13 +00:00
Michael Meskes
dbdc2e52a0
Re-enabled variables in fetch/move command.
2008-01-15 10:31:47 +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
d49b20fbe6
Applied patch by ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> to get prepare thread-safe.
2007-09-26 10:57:01 +00:00
Michael Meskes
cbe74fafe5
Hopefully fixed missing CHAR_BIT symbol
2007-08-14 10:54:57 +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
85a3fce996
Removed non-existant function from extern.h
2007-04-27 07:55:14 +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
a5a1506c96
Removed compiler warning due to unneeded unsigned declaration.
...
Removed regression test that triggers those libc precision bugs on some archs.
2007-01-25 16:45:25 +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
Bruce Momjian
f99a569a2e
pgindent run for 8.2.
2006-10-04 00:30:14 +00:00
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.
2006-08-23 12:01:53 +00:00
Bruce Momjian
9ac2f2e8ea
Add missing ecpg function prototype needed when in threaded mode ---
...
supresses compiler warning.
2006-08-04 03:23:37 +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
f3d99d160d
Add CVS tag lines to files that were lacking them.
2006-03-11 04:38:42 +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
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
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
87758314ca
Made sure an internal array is not treated as a user defined one.
2003-11-08 19:46:27 +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
42df5e311f
Started to create different error codes for different backend messages.
2003-07-15 12:38:38 +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
Bruce Momjian
4f70680177
Make ecpg thread safe.
...
Lee Kindness
2003-06-15 04:07:58 +00:00
Michael Meskes
a4f25b6a9c
Started working on a seperate pgtypes library. First test work. PLEASE test compilation on iother systems.
2003-03-16 10:42:54 +00:00