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
Tom Lane
974c5a8730
ecpg/pgtypeslib seems to need snprintf.c pulled in, too.
2005-12-06 05:26:21 +00:00
Tom Lane
e0e7589169
Make Win32 build use our port/snprintf.c routines, instead of depending
...
on libintl which may or may not provide what we need. Make a few marginal
cleanups to ensure this works. Andrew Dunstan and Tom Lane.
2005-12-06 02:29:04 +00:00