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
a6b5765c7e
Synced parser and keyword list.
2007-09-04 10:02:29 +00:00
Michael Meskes
c7b6593042
Fixed bug in Informix define handling.
2007-08-29 13:58:13 +00:00
Andrew Dunstan
1535f26c70
unbreak ECPG tests for VPATH builds.
2007-08-23 00:38:17 +00:00
Michael Meskes
fefe7034e2
More cleaning up and removed some duplicates.
2007-08-22 08:20:58 +00:00
Michael Meskes
002b4781ba
It seems we simply expected the same output for failure and success.
2007-08-14 11:21:38 +00:00
Michael Meskes
8187905913
It seems I always forget .in files.
2007-08-14 10:56:20 +00:00
Michael Meskes
cbe74fafe5
Hopefully fixed missing CHAR_BIT symbol
2007-08-14 10:54:57 +00:00
Michael Meskes
aa130f5c42
Fixed compiler warning for enum handling
2007-08-14 10:32:47 +00:00
Michael Meskes
146242fc9c
As usual I forgot some files. :-)
2007-08-14 10:19:14 +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
a1b336679c
Synced parser
2007-07-25 16:10:41 +00:00
Magnus Hagander
906b2e1b37
Rename DLLIMPORT macro to PGDLLIMPORT to avoid conflict with
...
third party includes (like tcl) that define DLLIMPORT.
2007-07-25 12:22:54 +00:00
Michael Meskes
839fcc9fd0
Applied patch by Joachim to enable checktcp again
2007-06-15 08:23:52 +00:00
Magnus Hagander
56813a998c
Add resultmap entries for mingw - same as for msvc
2007-06-14 13:15:58 +00:00
Magnus Hagander
6d12c7dcd4
Properly identify mingw as a win32 platform needing different diff
...
options to deal with strange line endings.
2007-06-14 13:10:11 +00:00
Alvaro Herrera
e41c7bb7cd
VPATH fixes.
2007-06-12 15:00:41 +00:00
Magnus Hagander
ee9d55cb52
Fix search/replace error in makefile for ecpg tests
2007-06-12 13:09:58 +00:00
Michael Meskes
5e96a7b96c
Fixed reduce/recuce problem due to CURRENT_P.
2007-06-12 11:32:30 +00:00
Magnus Hagander
09922597c5
Rewrite ECPG regression test driver in C, by splitting the standard
...
regression driver into two parts and reusing half of it. Required to
run ECPG tests without a shell on MSVC builds.
Fix ECPG thread tests for MSVC build (incl output files).
Joachim Wieland and Magnus Hagander
2007-06-12 11:07:34 +00:00
Michael Meskes
e514740e69
Synced parser and keyword list.
2007-06-12 07:55:56 +00:00
Michael Meskes
88a7c4822c
Should not try to unlink stdout.
2007-06-11 12:01:23 +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
efbd5bcb5a
Update expected files for textual changes
2007-06-04 07:48:17 +00:00
Peter Eisentraut
7ce9b3683e
Make some messages more consistent
2007-05-31 15:13:06 +00:00
Michael Meskes
7e72d07aa4
Applied patch send by Joachim Wieland to fix INTEGER_DATETIMES under MSVC.
2007-05-28 09:46:47 +00:00
Michael Meskes
a0c366d5a1
Sorry guys, I committed the file from my development snapshot instead the one from HEAD. Fixing it now.
2007-05-27 15:59:57 +00:00
Michael Meskes
eff6773ae6
The source code changed, so the expected file changed too.
2007-05-27 11:32:59 +00:00
Michael Meskes
93625aa8ac
Applied Joachim's patch for ecpg_config.h creation on Vista.
...
Changed variable test to not run into infinite loops on backend errors.
2007-05-27 11:16:41 +00:00
Michael Meskes
9ab58bbda6
Also removed the function not just the call, sorry.
2007-05-21 07:07:48 +00:00
Michael Meskes
439cf8e676
Do not try to find local timezone in DecodeDateTime() because the
...
result is not used anyway. This also fixes Vista's build problems.
2007-05-21 07:04:00 +00:00
Michael Meskes
2f2717d14f
tackling Vista problem - another try
2007-05-20 11:30:30 +00:00
Michael Meskes
3e7956cab7
Removed mktime() call to hopefully get rid of some compatibility problems.
2007-05-17 20:07:35 +00:00
Michael Meskes
b1110aaa8b
Added some more error logging.
2007-05-10 14:29:21 +00:00
Michael Meskes
1aca1cde52
- Synced parser and keyword list
...
- Renamed update test so it hopefully runs on Vista
2007-05-10 09:53:17 +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
Peter Eisentraut
ae8072a404
Complete cleaning
2007-04-01 08:56:58 +00:00
Magnus Hagander
96b171903d
Make ECPG regression tests use native threading instead of pthreads, now that
...
ecpglib supports it.
Change configure (patch from Bruce) and msvc build system to no longer require
pthreads on win32, since all parts of postgresql can be thread-safe using the
native platform functions.
2007-03-29 15:30:52 +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
Tom Lane
856b87c294
Fix typo, ensable -> enable, per Steve Gieseking.
2007-03-27 03:25:28 +00:00
Tom Lane
584b6dc2d5
Fix ecpg/preproc makefile for parallel builds: parser.o must depend
...
on preproc.h, else make may try to build it before preproc.h is ready.
Per failures seen here and in buildfarm.
2007-03-18 17:57:34 +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
Bruce Momjian
3e803f7273
Add "isodow" option to EXTRACT() and date_part() where Sunday = 7.
2007-02-19 17:41:39 +00:00
Bruce Momjian
4ebb0cf9c3
Add two new format fields for use with to_char(), to_date() and
...
to_timestamp():
- ID for day-of-week
- IDDD for day-of-year
This makes it possible to convert ISO week dates to and from text
fully represented in either week ('IYYY-IW-ID') or day-of-year
('IYYY-IDDD') format.
I have also added an 'isoyear' field for use with extract / date_part.
Brendan Jurd
2007-02-16 03:39:46 +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
Peter Eisentraut
c138b966d4
Replace useless uses of := by = in makefiles.
2007-02-09 15:56:00 +00:00
Peter Eisentraut
16059d39a0
Replace some strncpy() by strlcpy().
2007-02-07 00:52:35 +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
Bruce Momjian
8b4ff8b6a1
Wording cleanup for error messages. Also change can't -> cannot.
...
Standard English uses "may", "can", and "might" in different ways:
may - permission, "You may borrow my rake."
can - ability, "I can lift that log."
might - possibility, "It might rain today."
Unfortunately, in conversational English, their use is often mixed, as
in, "You may use this variable to do X", when in fact, "can" is a better
choice. Similarly, "It may crash" is better stated, "It might crash".
2007-02-01 19:10:30 +00:00
Michael Meskes
0fe1c36757
Fixed expected files, so they are in sync with tests again.
2007-01-27 18:33:22 +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
a85e9c61e5
Remove some unused variables
2007-01-21 09:23:29 +00:00
Peter Eisentraut
962e825cd7
Put back libpq link, but make sure that libpq's in-tree directory is
...
mentioned before the system directories.
2007-01-21 09:19:06 +00:00
Peter Eisentraut
2cc01004c6
Remove remains of old depend target.
2007-01-20 17:16:17 +00:00
Peter Eisentraut
552348c166
The libpq library directory was mentioned here in the wrong place, which
...
might lead to a previously installed libpq being used instead. But we
don't actually have to link with libpq here at all, so remove it.
2007-01-20 15:26:28 +00:00
Peter Eisentraut
862c3ff04d
Only build ecpg test code when the test is to be performed, in line with
...
other test code.
2007-01-20 15:25:29 +00:00
Michael Meskes
1b1c6ed70a
Missed two new files from Joachim's patch.
2007-01-12 11:31:33 +00:00
Michael Meskes
89dad03f8b
also adjust MinGW expected file to new setup
...
create expected file with correct port number
2007-01-12 11:27:28 +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
9b1854f16e
Update ecpg regresison output for new library version number.
2007-01-05 22:43:17 +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
Alvaro Herrera
cf06c2e5d4
Fix Makefile problem which prevented installation on VPATH builds.
2006-11-29 21:21:03 +00:00
Michael Meskes
09309df9a2
Also install ecpg_config.h
2006-11-28 12:44:06 +00:00
Tom Lane
ce3d1a4fbc
Un-break ecpg regression test.
2006-11-23 05:47:48 +00:00
Bruce Momjian
956c2d6683
Make ecpg test variable 'times' static so as not to conflict with libc
...
symbol.
2006-11-23 04:38:01 +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
Michael Meskes
a09f9ff649
Small parser sync
2006-10-23 08:00:48 +00:00
Tom Lane
14914e0d33
Fix unexpected side-effect of changes for case insensitivity of timezone names.
2006-10-17 02:21:46 +00:00
Michael Meskes
fcc2fbac22
Reverted changes made by pgindent
...
Made show.pgc set all variables before displaying them.
2006-10-04 10:09:03 +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
Michael Meskes
2c660c61cf
Added new files
2006-09-26 09:07:31 +00:00
Michael Meskes
9897e35c56
Added Joachim's changes for MinGW.
...
Added SET DATESTYLE to one test so the output format is defined.
2006-09-26 07:56:57 +00:00
Tom Lane
beca984e5f
Fix bugs in plpgsql and ecpg caused by assuming that isspace() would only
...
return true for exactly the characters treated as whitespace by their flex
scanners. Per report from Victor Snezhko and subsequent investigation.
Also fix a passel of unsafe usages of <ctype.h> functions, that is, ye olde
char-vs-unsigned-char issue. I won't miss <ctype.h> when we are finally
able to stop using it.
2006-09-22 21:39:58 +00:00
Tom Lane
9b5e108ee9
Fix shared library creation to work properly on AIX. Albe Laurenz
2006-09-19 15:36:08 +00:00
Michael Meskes
4eef745fb1
Cygwin systems seem to have a different error message when trying to connect to port 0. Let's try port 20 instead.
2006-09-14 08:46:58 +00:00
Michael Meskes
0f0d6765ce
Added missing constuctor/destructor for interval and date.
2006-09-14 08:02:38 +00:00
Michael Meskes
9c356a6b3e
Seems this wasn't committed originally
2006-09-12 09:09:31 +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
Tom Lane
bb87c7b551
Ooops, forgot to update ecpg comparison files to match
...
source-code change.
2006-09-11 02:50:07 +00:00
Tom Lane
1d0b7e71e3
Fix unportable usage complained of by icc. Per buildfarm results.
2006-09-11 01:41:35 +00:00
Tom Lane
4ee24cbb55
Install a cleaner solution to the AIX libpq linking problem, as per
...
an earlier discussion. Centralize assumptions about what libpq depends
on in one place in Makefile.global. I am unconvinced that this list
is complete, but since ecpg seems to have gotten along with just these
entries, we'll try it this way and see what happens.
2006-09-10 22:07:02 +00:00
Michael Meskes
0b33c56297
Not all C compilers understand the "//" comment in this test case, so I removed it.
2006-09-08 14:58:27 +00:00
Michael Meskes
460f46816a
Replaced complex tests with small ones.
2006-09-08 13:32:29 +00:00
Michael Meskes
52a013bea8
More logic from complex/test* moved to their own testcases.
2006-09-08 09:03:40 +00:00
Michael Meskes
803d9c39dd
Changing a test case also changes the output that is expected.
...
Float/Long aliasing doesn't work on all architecures.
2006-09-07 11:18:47 +00:00
Michael Meskes
1d1868d97e
Removed one output because integer/double usage differ
2006-09-07 08:15:58 +00:00
Michael Meskes
a3242fb42c
Lost some changes yet again
2006-09-05 12:17:09 +00:00
Michael Meskes
c9970d5948
Started to cleanup complex tests.
...
Added some interval checks to regression suite.
2006-09-05 12:11:03 +00:00
Michael Meskes
276b3bb3e3
Synced parser.
...
Fixed ecpglib trying to read one character after end-of-string.
Fixed port number setting in regression suite.
2006-09-05 10:00:53 +00:00
Bruce Momjian
497f49a736
Remove trailing slash use in ecpg regression script; caused failures on
...
some platforms.
2006-09-04 19:36:21 +00:00
Tom Lane
57bfb27e60
Fix interval input parser so that fractional weeks and months are
...
cascaded first to days and only what is leftover into seconds. This
seems to satisfy the principle of least surprise given the general
conversion to three-part interval values --- it was an oversight that
these cases weren't dealt with in 8.1. Michael Glaesemann
2006-09-04 01:26:28 +00:00
Tom Lane
6ca09ad703
Suppress 'unused variable' warnings created by latest commit.
2006-09-03 19:30:43 +00:00
Michael Meskes
246bd83811
Synced parser.
...
Added another regression test and fixed tcp test.
2006-09-03 12:24:08 +00:00
Michael Meskes
cda6d0a8d3
Second try committing the path changes.
2006-08-29 13:23:27 +00:00
Michael Meskes
67135eb1ef
Removed debug option from pg_regress call.
...
Changed file paths in expected files too.
2006-08-29 12:33:45 +00:00
Michael Meskes
b1710339ba
Fixed parser and library to allow empty database names.
...
Streamlined connection name parsing.
Added Joachim's patch to shorten paths before diffing.
2006-08-29 12:24:52 +00:00
Tom Lane
ae28cfe673
Partial fix for ecpg's VPATH problems. It compiles and successfully
...
builds all the files needed for its regression tests, but the tests
themselves fail because of diffs in the #line directives output by
ecpg itself. Not sure what to do about that.
2006-08-28 16:13:11 +00:00
Michael Meskes
99a5619e7b
- Enabled single-quoted connection targets.
...
- Fixed a memory leak/segfault in unsuccessful connection.
- Some changes to test files.
2006-08-27 16:15:42 +00:00
Michael Meskes
445a61297e
Changed double output.
2006-08-26 11:50:00 +00:00
Michael Meskes
e96df81b17
Synced parser
2006-08-24 12:31:33 +00:00
Michael Meskes
8d9cf79437
Needed more stuff from c.h.
2006-08-24 10:48:21 +00:00
Michael Meskes
e8d1dcbfde
Fixed of by one variable size.
2006-08-24 10:35:58 +00:00
Michael Meskes
b7d5a88dbb
Need more defines in ecpg_config.h, patch sent by Rocco Altier <RoccoA@Routescape.com>
2006-08-24 09:37:07 +00:00
Michael Meskes
a6558b068d
Somehow my version compiled but the change didn't make it to CVS.
2006-08-23 13:57:27 +00:00
Michael Meskes
02c3cdbaad
Argh, forgot the new file yet again.
2006-08-23 12:51:26 +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
Michael Meskes
54f5527606
Descriptor values were quoted twice.
...
Fixed some regression test problems.
2006-08-22 12:46:18 +00:00
Michael Meskes
fc19744e58
Added another test
2006-08-19 15:10:00 +00:00
Michael Meskes
84844bab2c
More SoC stuff
2006-08-19 13:42:40 +00:00
Michael Meskes
46d61eb218
Fixed a buffer overrun that was masked on Linux systems.
2006-08-18 16:30:53 +00:00
Michael Meskes
e91600d1c2
Changed lexer to no longer use the default rule.
...
Synced parser and keyword list.
Fixed parsing of CONNECT statement so it accepts a C string again.
2006-08-18 15:59:35 +00:00
Michael Meskes
2834fb6a83
Fixed a typo and made two mallocs Coverity friendly.
2006-08-15 12:46:25 +00:00
Michael Meskes
4a445f5d97
Sorry, forgot the new files.
2006-08-15 06:48:24 +00:00
Michael Meskes
b30da7ba5f
Added lots of SoC stuff made by Joachim.
...
Fixed broken newline on Windows.
Fixed a nasty buffer underrun that only occured when using Informix
no_indicator NULL setting on timestamps and intervals.
2006-08-15 06:40:20 +00:00
Michael Meskes
ab6aa40b64
Applied patch for VPATH builds by Alvaro Herrera <alvherre@commandprompt.com>
...
Merged dyntest.pgc and dyntest2.pgc.
Hopefully fixed the last Coverity reports (finally)
2006-08-13 10:18:31 +00:00
Tom Lane
0bf9d3a59e
Fix inadequate makefile-fu in ecpg regression tests. I think this
...
will fix current platypus build failure.
2006-08-09 22:48:17 +00:00
Michael Meskes
e6e61afe16
Fixed some memory bugs that somehow reappeared.
...
Also fixed a new Coverity report.
2006-08-09 09:08:32 +00:00
Michael Meskes
7c9e2c75da
Fixed error handling in numeric conversion (Joachim).
...
Further regression cleanup.
2006-08-09 07:30:56 +00:00
Tom Lane
644e3fe368
Fix 'make clean' for change of regression.diffs file name.
2006-08-08 19:43:11 +00:00
Michael Meskes
79a1a2ec6b
Cleaned up log output a little bit more.
2006-08-08 15:30:39 +00:00
Michael Meskes
6e11202dbe
Made parser check for valid copy to/from stdin/stdout combinations.
...
Lots of small changes in regression test suite
2006-08-08 11:51:25 +00:00
Michael Meskes
977ac90001
Joachim fixed some bugs in numeric handling in pgtypeslib.
...
Fixed and cleaned up some regression tests. Also added a new one.
2006-08-07 13:17:02 +00:00
Michael Meskes
1d28bf2589
Two more changes to regression tests to fix two differences in different setups.
2006-08-05 16:48:48 +00:00
Tom Lane
6db6714ffc
Remove redeclaration of struct sqlca_t --- unnecessary and provokes
...
warnings on some compilers.
2006-08-04 16:54:05 +00:00
Tom Lane
5d844d3271
'make clean' must remove the create subdirectories results/ and log/,
...
not merely remove their contents. Else 'cvs update' complains.
2006-08-04 14:18:09 +00:00
Michael Meskes
3ceaa97b3c
Regression test updates and fixes
2006-08-04 08:52:18 +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
4b8378a671
Removed compiler warnings
2006-08-03 14:50:11 +00:00
Michael Meskes
27458bb4fa
Applied test suite update by Joachim Wieland <joe@mcknight.de>.
2006-08-03 13:11:04 +00:00
Andrew Dunstan
959aee5bbf
remove extraneous space after -L flag.
2006-08-02 19:02:34 +00:00
Michael Meskes
efc861a842
And finally the Makefiles
2006-08-02 14:19:14 +00:00
Michael Meskes
1f0a6cd60c
Hopefully that's it. The remaining files for ecpg regression tests.
2006-08-02 14:14:04 +00:00
Michael Meskes
b737f85e84
Some more regression test files
2006-08-02 13:53:45 +00:00
Michael Meskes
2682a4c01d
One more file to remove
2006-08-02 13:52:11 +00:00
Michael Meskes
36e8d4e780
Removed old test files
2006-08-02 13:51:32 +00:00
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>.
2006-08-02 13:43:23 +00:00
Michael Meskes
4cd72b53b9
Added missing ECPGget_sqlca() call
2006-07-31 13:26:46 +00:00
Michael Meskes
c1c9b7c0c0
First small patches needed for regression tests
2006-07-31 10:15:31 +00:00
Michael Meskes
0bee536ad8
Replaced $Header$ by $§PosgreSQL$
2006-07-30 16:28:58 +00:00
Michael Meskes
cdf131abac
Added missing $Header$ entries.
2006-07-30 10:24:10 +00:00
Michael Meskes
76475a7eb5
Variables should be free'ed only once.
2006-07-28 11:49:36 +00:00
Michael Meskes
a27cb17788
Removed superfluous comment
2006-07-28 10:12:56 +00:00
Michael Meskes
9e76b4c7c5
And one more:
...
Connection identifier has to be unique
2006-07-28 10:10:42 +00:00
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
a7143b3088
Fix some makefiles that fail to yield good results from 'make -qp'.
...
This doesn't really matter for ordinary building of Postgres, but it's
useful for automated checks, such as my just-committed pgcheckdefines.
2006-07-15 03:33:14 +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
Bruce Momjian
b85a965f5f
Allow each C include file to compile on its own by including any needed
...
header files.
2006-07-11 13:54:25 +00:00
Michael Meskes
956cbeb7ef
Fixed remaining Coverity bugs.
2006-07-05 10:49:56 +00:00
Michael Meskes
4b98d423d7
Added missing braces to prevent a segfault after usage of an undeclared cursor.
2006-06-26 14:12:02 +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
Bruce Momjian
e970b2a62b
Remove individual user copyright because the code is contributed to
...
PGDG:
> Yes. In fact the copyright belongs to credativ GmbH the company that
> paid Carsten for his work. As you may or may not know I'm the CEO of
> that company and can assure you that his work was contributed to the
> PostgreSQL project.
2006-06-25 01:45:32 +00:00
Michael Meskes
c2f3c168fb
Clarified copyright notice
2006-06-23 14:50:01 +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
6bba43111e
Fixed small typo in changelog
2006-06-21 10:34:48 +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
Michael Meskes
aaf125f8df
Do not use already free'ed errmsg, bug found by Joachim Wieland
...
<joachim.wieland@credativ.de>
2006-06-19 09:19:49 +00:00
Michael Meskes
0251602fc9
Fixed two more memory leaks in ecpglib.
...
Synced parser.
2006-06-06 11:31:55 +00:00
Michael Meskes
085e7c2fd8
Somehow a ";" got lost which changed the logic. This btw is the first fix resulting from SoC.
2006-05-31 08:12:48 +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
Bruce Momjian
ad98575617
Use SQL standard '' rather than \' for tutorial/sample code.
...
Backpatch to 8.1.X.
2006-05-11 19:21:14 +00:00
Tom Lane
637028afe1
Code review for standard_conforming_strings patch. Fix it so it does not
...
throw warnings for 100%-SQL-standard constructs, clean up some minor
infelicities, try to un-break ecpg to the best of my ability. (It's not clear
how ecpg is going to find out the setting of standard_conforming_strings,
though.) I think pg_dump still needs work, too.
2006-05-11 19:15:36 +00:00
Tom Lane
de762468aa
We only need to add thread.c on non-WIN32 platforms, since get_home_path
...
doesn't use pqGetpwuid on WIN32. Rather than try to figure out why it
won't build on WIN32, just remove it.
2006-04-29 20:13:07 +00:00
Tom Lane
1e7bb2da57
Arrange to strip libpq.so of symbols that aren't officially supposed to
...
be exported on Linux and Darwin. We already did this on Windows but
that's not enough, as evidenced by the fact that libecpg had an unexpected
dependency on one such symbol. We should try to do it on more platforms.
Fix ecpg's oversight, and bump libpq's major .so version number to reflect
the unwanted but nonetheless real ABI break.
2006-04-28 02:53:20 +00:00
Bruce Momjian
59d591e79a
Back out RESET CONNECTION until there is more discussion.
2006-04-25 14:11:59 +00:00
Bruce Momjian
6378fdd971
Add RESET CONNECTION, to reset all aspects of a session.
...
Hans-J?rgen Sch?nig
2006-04-25 14:09:21 +00:00
Michael Meskes
524d65d459
Fixed memory leak bugs found by Martijn Oosterhout.
2006-04-24 09:45:22 +00:00
Michael Meskes
0941a8901b
Fixed bug 2330: Wrong error code in case of a duplicate key
2006-03-17 15:46:13 +00:00
Bruce Momjian
4a85bf3eaf
Remove Christof Petig copyright. He already approved removal from an
...
include file in the same area,.
2006-03-11 16:57:44 +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
4c0efd3ae2
Remove Christof Petig copyright on include file, per author request.
2006-03-08 22:00:27 +00:00
Tom Lane
012abebab1
Remove the stub support we had for UNION JOIN; per discussion, this is
...
not likely ever to be implemented seeing it's been removed from SQL2003.
This allows getting rid of the 'filter' version of yylex() that we had in
parser.c, which should save at least a few microseconds in parsing.
2006-03-07 01:00:19 +00:00
Tom Lane
48cf295742
'make clean' should NOT remove *~ files.
2006-03-07 00:48:07 +00:00
Bruce Momjian
19c21d115d
Enable standard_conforming_strings to be turned on.
...
Kevin Grittner
2006-03-06 19:49:20 +00:00
Bruce Momjian
f2f5b05655
Update copyright for 2006. Update scripts.
2006-03-05 15:59:11 +00:00
Peter Eisentraut
7f4f42fa10
Clean up CREATE FUNCTION syntax usage in contrib and elsewhere, in
...
particular get rid of single quotes around language names and old WITH ()
construct.
2006-02-27 16:09:50 +00:00
Tom Lane
14ebeee134
C++ comments are verboten. Per gripe from Kris Jurka.
2006-02-09 07:22:22 +00:00
Tom Lane
3cb312d873
Fix broken non-YYDEBUG case.
2006-02-09 00:56:57 +00:00
Michael Meskes
e3740d2c59
Added just another test case.
...
Fixed missing continuation line character.
Do not translate $-quoting.
Bit field notation belongs to a variable not a variable list.
Output of line number only done by one function.
2006-02-08 09:10:05 +00:00
Michael Meskes
a13c1edb57
Added C bit fields to ecpg parser
...
Added some default rules to lexer
Added log output to prepare statement
Added some more stuff to a test case
2006-02-04 20:54:44 +00:00
Bruce Momjian
b3769066b8
In ecpg, automatically double single quotes in $$ strings because
...
internally $$ strings are converted to single-quote strings.
In ecpg, output newlines in commands using standard C escapes, rather
than using literal newlines, which is not portable.
2006-02-04 02:32:38 +00:00
Bruce Momjian
890707a537
Improve tab whitespace in file.
...
Add comment about $$ and '' SCONST strings.
2006-02-03 05:38:35 +00:00
Bruce Momjian
46dfa5ec83
More spacing cleanups.
2006-02-02 03:51:41 +00:00
Bruce Momjian
d63901c9d0
Source code alignment fixes for preproc.y.
2006-02-01 22:16:36 +00:00
Bruce Momjian
a274239bce
More alignment improvements.
2006-02-01 20:57:39 +00:00
Bruce Momjian
71b9df2bed
Make pgc.l source code alignment consistent.
2006-02-01 20:56:44 +00:00
Michael Meskes
69f9fab197
- Synced parser and keyword list.
...
- Added another test case.
2006-01-24 11:01:38 +00:00
Michael Meskes
f3dda5be89
Data transferred binary is now put into the variables verbatim.
...
Also added a test case for a binary cursor.
2006-01-17 19:49:23 +00:00
Neil Conway
1ce4c9e9b4
When using GCC on AMD64 and PPC, ECPGget_variable() takes a va_list *, not
...
a va_list. Christof Petig's previous patch made this change, but neglected
to update ecpglib/descriptor.c, resulting in a compiler warning (and a
likely runtime crash) on AMD64 and PPC.
2006-01-15 22:46:53 +00:00
Bruce Momjian
44f9021223
Remove BEOS port.
2006-01-05 03:01:38 +00:00
Neil Conway
12119188fe
Revert some careless search-and-replace: "ADD" in comment text should
...
not be replaced with "ADD_P".
2005-12-29 04:53:18 +00:00
Bruce Momjian
a4a4b8bb02
Protect ADD and HEADER symbols from conflicting with MIPS includes.
2005-12-27 04:00:08 +00:00
Peter Eisentraut
a29c04a541
Allow installation into directories containing spaces in the name.
2005-12-09 21:19:36 +00:00
Bruce Momjian
7b1a7e786e
Stamp libraries for 8.2 by updating minor library version numbers and
...
Win32 library files.
2005-12-09 02:49:09 +00:00