Michael Meskes
f496eb31b2
Check for non-existant connection in prepare statement handling.
...
Do not close files that weren't opened.
2008-05-12 16:30:17 +00:00
Michael Meskes
e5fab267c5
added ECPGget_PGconn to exports.txt
2008-03-25 12:45:33 +00:00
Michael Meskes
4866b529f3
Corrected version number.
2008-03-21 16:10:10 +00:00
Michael Meskes
94a710563e
Added ECPGget_PGconn() function to ecpglib, courtesy of Mike Aubury.
...
Bumped library version to 6.1.
2008-03-20 16:30:14 +00:00
Tom Lane
0b173a6e8d
Fix unportable usages of tolower(). On signed-char machines, it is necessary
...
to explicitly cast the output back to char before comparing it to a char
value, else we get the wrong result for high-bit-set characters. Found by
Rolf Jentsch. Also, fix several places where <ctype.h> functions were being
called without casting the argument to unsigned char; this is likewise
unportable, but we keep making that mistake :-(. These found by buildfarm
member salamander, which I will desperately miss if it ever goes belly-up.
2008-03-01 03:26:44 +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
Michael Meskes
149db6b6b7
Changed prototype for ECPGdo because some compilers don't like int/enum aliasing in there.
2008-01-13 11:53:16 +00:00
Bruce Momjian
9098ab9e32
Update copyrights in source tree to 2008.
2008-01-01 19:46:01 +00:00
Bruce Momjian
f6e8730d11
Re-run pgindent with updated list of typedefs. (Updated README should
...
avoid this problem in the future.)
2007-11-15 22:25:18 +00:00
Bruce Momjian
fdf5a5efb7
pgindent run for 8.3.
2007-11-15 21:14:46 +00:00
Tom Lane
bcb3852c33
Fix deprecated-by-C-spec usage: storage class should come before const
...
decoration. Zdenek Kotala
2007-11-05 20:57:24 +00:00
Tom Lane
eefd10c66c
Fix distprep and maintainer-clean targets so that ecpg's .def files are
...
made and removed at the correct times.
2007-10-05 01:51:40 +00:00
Tom Lane
b8f41d508c
Add .cvsignore files to suppress CVS gripes about ecpg .def files.
2007-10-05 01:35:55 +00:00
Tom Lane
8dfca24b6b
Results from buildfarm show that ecpglib was depending on pg_strcasecmp,
...
which evidently it got as an unofficial export from pgtypeslib.
2007-10-04 20:54:08 +00:00
Tom Lane
c86ce06964
DLL_DEFFILE should be defined when PORTNAME is win32, not when it isn't,
...
per the example of libpq/Makefile.
2007-10-04 18:32:07 +00:00
Michael Meskes
746593efe6
Replaced tabs by white spaces
2007-10-04 17:49:31 +00:00
Michael Meskes
085ffb24dc
Removed newline at end of exports files.
2007-10-04 16:29:33 +00:00
Michael Meskes
133d77a906
Added def-files to all: target so they are build everytime.
2007-10-04 07:58:15 +00:00
Tom Lane
b3ab9b45da
Suppress compiler warning in non-threaded build.
2007-10-03 16:03:25 +00:00
Magnus Hagander
5d0f18d6ad
Fix typo
2007-10-03 12:11:37 +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
Tom Lane
314ed5de6d
Define the FRONTEND symbol in postgres_fe.h, which allows us to eliminate
...
duplicative -DFRONTEND flags from many Makefiles. We still need Makefile
control of the symbol in a few places that compile frontend-or-backend
src/port/ files, but it's a lot cleaner than before.
Hiroshi Saito
2007-09-27 19:53:44 +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
3e77c8c6c6
Removed superfluous ECPGfree() call.
2007-09-21 10:59:27 +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
91411b6105
Fixed one memory leak in descriptor code.
...
Made sure ecpg deletes output file in case of an error.
2007-06-11 11:52:08 +00:00
Peter Eisentraut
7ce9b3683e
Make some messages more consistent
2007-05-31 15:13:06 +00:00
Michael Meskes
b1110aaa8b
Added some more error logging.
2007-05-10 14:29:21 +00:00
Michael Meskes
85a3fce996
Removed non-existant function from extern.h
2007-04-27 07:55:14 +00:00
Michael Meskes
c8577c6c7f
Inlined two functions to get rid of va_list problems on some archs.
2007-04-27 06:56:11 +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
d3e131e062
- Changed some whitespacing in connect statement.
...
- Made some chars const as proposed by Stefan Huehner <stefan@huehner.org >.
- Synced parser and keyword lists.
- Copied two token parsing from backend parser to ecpg parser.
- Also added a test case for this.
2007-03-17 19:25:24 +00:00
Michael Meskes
153affd058
Fixed multibyte handling as reported by <harada.toshi@oss.ntt.co.jp>.
2007-02-11 15:18:17 +00:00
Michael Meskes
685523c420
Applied Magnus Hagander's patch to take away some compiler warnings.
2007-02-02 09:31:10 +00:00
Michael Meskes
fc8115d42f
Cleaned up va_list handling. Hopefully this now works on all archs.
2007-02-02 08:58:23 +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
Peter Eisentraut
2cc01004c6
Remove remains of old depend target.
2007-01-20 17:16:17 +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
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.
2007-01-11 15:47:34 +00:00
Bruce Momjian
29dccf5fe0
Update CVS HEAD for 2007 copyright. Back branches are typically not
...
back-stamped for this.
2007-01-05 22:20:05 +00:00
Bruce Momjian
1c3b43cddd
Stamp major release 8.3.0, and increment library version numbers.
2007-01-05 20:54:43 +00:00
Michael Meskes
0c96e42797
Applied patch by Peter Harris to free auto_mem structure on connect
2006-11-08 10:46:47 +00:00
Bruce Momjian
f99a569a2e
pgindent run for 8.2.
2006-10-04 00:30:14 +00:00
Tom Lane
062421defb
Fix a couple other places that need to know about (some) src/port/ files
...
explicitly.
2006-09-28 14:48:45 +00:00
Tom Lane
568b80168f
Move set_pglocale_pgservice() from path.c to exec.c, so that pulling in
...
path.c does not in itself force linking of both exec.c and libintl.
Should fix current ecpglib build failure on pickier platforms.
2006-09-11 20:10:30 +00:00