Commit Graph

2373 Commits

Author SHA1 Message Date
Michael Meskes a05977edd9 - Added missing braces to array parsing.
- Set ecpg version to 3.1.1.
	- Removed that old debugging output that I forgot the last time.
2004-02-15 13:48:54 +00:00
Bruce Momjian feed7cf1c1 More clearly describe why PQinSend returns false for non-threaded libpq. 2004-02-10 15:21:24 +00:00
Tom Lane 0eb6951915 Repair missing inclusions of -lintl for shared libraries. 2004-02-10 07:26:25 +00:00
Neil Conway b8362d465d Use Tcl_PutEnv() in place of putenv() in libpgtcl, as the latter can
apparently corrupt the Tcl runtime. Per suggestion from Michael
Brusser <michael@synchronicity.com>
2004-02-02 00:35:08 +00:00
Bruce Momjian e5e5a323ca Briefly,
* configure + Makefile changes
 * shared memory attaching in EXEC_BACKEND case (+ minor fix for apparent
cygwin bug under cygwin/EXEC_BACKEND case only)
 * PATH env var separator differences
 * missing win32 rand functions added
 * placeholder replacements for sync etc under port.h


To those who are really interested, and there are a few of you: the attached
patch + file will allow the source base to be compiled (and, for some
definition, "run") under MingW, with the following caveats (I wanted to
first properly fix all but the last of these, but y'all won't quit asking
for a patch :-):

        * child death: SIGCHLD not yet sent, so as a minimum, you'll need to
put in some sort of delay after StartupDatabase, and handle setting
StartupPID to 0 etc (ie. the stuff the reaper() signal function is supposed
to do)

        * dirmod.c: comment out the elog calls

        * dfmgr.c: some hackage required to substitute_libpath_macro

        * slru/xact.c: comment out the errno checking after the readdir
(fixed by next version of MingW)

Again, this is only if you *really* want to see postgres compile and start,
and is a nice leg-up for working on the other Win32 TODO list items. Just
don't expect too much else from it at this point...


Claudio Natoli
2004-02-02 00:11:31 +00:00
Tom Lane b3ead7c045 Fix typo. 2004-01-28 20:43:03 +00:00
Michael Meskes 6d9a81b66f Removed some debugging output. 2004-01-28 09:54:23 +00:00
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.
2004-01-28 09:52:14 +00:00
Tom Lane c77f363384 Ensure that close() and fclose() are checked for errors, at least in
cases involving writes.  Per recent discussion about the possibility
of close-time failures on some filesystems.  There is a TODO item for
this, too.
2004-01-26 22:35:32 +00:00
Michael Meskes 1ef7c5c1e9 Added WHENEVER NOT_FOUND to SELECT/INSERT/UPDATE/DELETE. 2004-01-21 14:09:34 +00:00
Tom Lane bd046b99f0 Remove JDBC from the build system and documentation, too. 2004-01-19 21:20:06 +00:00
PostgreSQL Daemon b195c10df7 missed a few files 2004-01-19 20:08:27 +00:00
PostgreSQL Daemon 2a9bf5b33d JDBC is now on GBorg 2004-01-19 20:07:14 +00:00
Tom Lane 9bd681a522 Repair problem identified by Olivier Prenant: ALTER DATABASE SET search_path
should not be too eager to reject paths involving unknown schemas, since
it can't really tell whether the schemas exist in the target database.
(Also, when reading pg_dumpall output, it could be that the schemas
don't exist yet, but eventually will.)  ALTER USER SET has a similar issue.
So, reduce the normal ERROR to a NOTICE when checking search_path values
for these commands.  Supporting this requires changing the API for GUC
assign_hook functions, which causes the patch to touch a lot of places,
but the changes are conceptually trivial.
2004-01-19 19:04:40 +00:00
Peter Eisentraut ace92cef35 Translation update 2004-01-13 18:58:41 +00:00
Bruce Momjian 5cecb734a7 Fix ecpg test program to properly access int* null indicator. 2004-01-13 01:32:52 +00:00
Bruce Momjian 59182d9901 Add comment about synchronous signals. 2004-01-09 02:17:15 +00:00
Bruce Momjian 0150dbdce5 Allow libpq to do thread-safe SIGPIPE handling. This allows it to
ignore SIGPIPE from send() in libpq, but terminate on any other SIGPIPE,
unless the user installs their own signal handler.

This is a minor fix because the only time you get SIGPIPE from libpq's
send() is when the backend dies.
2004-01-09 02:02:43 +00:00
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.
2004-01-07 18:56:30 +00:00
Peter Eisentraut 35b1fe122c Translation updates 2004-01-05 19:15:48 +00:00
Michael Meskes 40417169ba Fixed bug in GRANT OPTION FOR parsing. 2004-01-04 14:49:06 +00:00
Tom Lane 4351f8823d Fix portability bugs: char values passed to <ctype.h> functions must
be cast to unsigned char.  We have learned this the hard way before.
2004-01-04 04:17:01 +00:00
Michael Meskes 21b3c0e0ec Added missing whitespaces to array argument parsing. 2003-12-29 13:53:04 +00:00
Tom Lane d167fb1015 Fix sanity-check code that mistakenly assumed error and notice messages
could never exceed 30K.  Per report from Andreas Pflug.
2003-12-28 17:43:57 +00:00
Tom Lane 36c9a01acf Avoid infinite loop if connection is lost during PQexecStart() or
PQexecFinish().  Per report from Andreas Pflug.
2003-12-28 17:29:41 +00:00
Michael Meskes 03caf7649b Fixed segfault in parsing of EXEC SQL SELECT * FROM foo() AS TBL( c int, i int); 2003-12-24 22:04:09 +00:00
Bruce Momjian 0ea4f9c859 Back out:
>  Attached is a patch that addressed all the discussed issues
>  that did not break backward compatability, including the
>  ability to output ISO-8601 compliant intervals by setting
>  datestyle to iso8601basic.
2003-12-21 04:34:36 +00:00
Tom Lane fb8ac3fcb6 Dept. of third thoughts: in fact, libpq should support SCM_CREDS challenge
even when HAVE_GETPEEREID is defined, else it will be unable to connect to
pre-7.4 backends that are using IDENT authentication.
2003-12-20 18:45:49 +00:00
Tom Lane b8f2980209 Fix broken IDENT support for FreeBSD (appears to have been broken by
ill-considered conditional logic in getpeereid patch of 3-Dec-2002).
Per bug #1021.
2003-12-20 18:24:52 +00:00
Bruce Momjian 54c8e821b8 In my mind there were two categories of open issues
a) ones that are 100% backward (such as the comment about
     outputting this format)
and
  b) ones that aren't (such as deprecating the current
     postgresql shorthand of
         '1Y1M'::interval = 1 year 1 minute
     in favor of the ISO-8601
         'P1Y1M'::interval = 1 year 1 month.

Attached is a patch that addressed all the discussed issues that
did not break backward compatability, including the ability to
output ISO-8601 compliant intervals by setting datestyle to
iso8601basic.

Interval values can now be written as  ISO 8601 time intervals, using
the "Format with time-unit designators". This format always starts with
the character 'P', followed  by a string of values followed
by single character time-unit designators. A 'T' separates the date and
time parts of the interval.

Ron Mayer
2003-12-20 15:32:55 +00:00
Bruce Momjian 85f51dea1c Supress ecpg thread test if configure didn't enable threads. Fix
tools/thread to run even if configure didn't enable threads because this
test is used before enabling threads for the OS.
2003-12-19 23:29:15 +00:00
Bruce Momjian 580cae7567 Prevent service dbname from defaulting to service name, per bug report
from Michael Fuhr
2003-12-19 21:50:54 +00:00
Tom Lane e0cd175212 Fix memory leak with SSL connections due to missing X509_free() calls.
Per Neil Conway.
2003-12-18 22:49:26 +00:00
Peter Eisentraut ed8e5143c2 Forgot to change one compatlib.h. 2003-12-18 20:25:58 +00:00
Peter Eisentraut ad8c09c29c Move Informix compatibility include files out of the way. compatlib.h
was integrated into ecpg_informix.h, the other ones go into their own
subdirectory that is automatically considered by the embedded preprocessor
when in Informix mode.
2003-12-18 18:55:09 +00:00
Dave Cramer b4ed1edb57 patch for new OID74Test 2003-12-18 04:17:17 +00:00
Dave Cramer b9deede241 fixed up OID74 test to conform with other tests, by Kris Jurka 2003-12-18 04:08:30 +00:00
Dave Cramer bb58eed004 patch by Kris Jurka to use the correct protocol based upon server information 2003-12-18 03:27:15 +00:00
Dave Cramer 9dddd242dd revoked patch from Kris Jurka to fix multiarguments, and changed test to create
a temp table
2003-12-17 15:45:05 +00:00
Dave Cramer e4955c2ec3 patch from Kris Jurka to fix large object 7.1 compatible protocol issues
modified test case from Alexey Yudichev to be part of the testsuite
2003-12-17 15:38:42 +00:00
Michael Meskes 95eea2d89c - Added just another patch by Dave that fixes a reversed order in
variable listing for output variables in cursor definitions
- Fixed incorrect if call in long=>numeric conversion.
2003-12-17 15:23:45 +00:00
Dave Cramer 845109e606 added polish translation submitted by Piotr Maj 2003-12-17 13:25:14 +00:00
Dave Cramer 7ac2f11c14 add missing SQLState by Patrick Higgins 2003-12-12 18:36:20 +00:00
Dave Cramer 605c1e6df0 cancel row updates sets values to null by Kris Jurka 2003-12-12 18:34:14 +00:00
Dave Cramer 06ec9044b5 patch to indicate why test cases failed from Oliver Jowett 2003-12-12 18:30:27 +00:00
Dave Cramer 8727029969 patch to fix returning he information schema as a system object by Kris Jurka 2003-12-12 18:27:51 +00:00
Dave Cramer 777acbb345 fix casting pooled connections to PGStatement problem patch by JariP 2003-12-12 18:05:34 +00:00
Dave Cramer ef6a80431f patch to build under jdk1.1 from Richard Scranton 2003-12-12 17:58:34 +00:00
Dave Cramer 4bb71ef519 binary stream patch by Kris Jurka fixes empty stream failure 2003-12-12 00:26:20 +00:00
Dave Cramer f9d3ed65c4 metadata encoding patch from Kris Jurka 2003-12-12 00:21:36 +00:00
Dave Cramer 742ca2e057 build number set to 300 to avoid conflict with 7.4 builds
threadsafe patch from Karl von Randow applied
2003-12-11 18:10:40 +00:00
Dave Cramer fc1dc0cd33 patch to deal with unique foreign keys in 7.4 from Kris Jurka 2003-12-11 15:50:20 +00:00
Dave Cramer 6ae740dbd8 tch to make sure PSQLState is Serializable and a test case to prove it 2003-12-11 15:13:34 +00:00
Dave Cramer e77708d9be patch to make sure PSQLState is Serializable and a test case to prove it 2003-12-11 15:11:43 +00:00
Dave Cramer 67173060e6 incremented build to 211 2003-12-10 18:30:44 +00:00
Michael Meskes 3819afa759 Added patch by Dave Cramer for array handling in ecpglib. 2003-12-03 08:49:17 +00:00
Joe Conway b8f40ced2f Make PQescapeBytea and byteaout consistent with each other, and
octal escape all octets outside the range 0x20 to 0x7e. This fixes
the problem pointed out by Sergey Yatskevich here:
http://archives.postgresql.org/pgsql-bugs/2003-11/msg00140.php
2003-11-30 20:55:09 +00:00
Bruce Momjian 32abf0e781 Bump all version numbers and version stamps mentioned in RELEASE_CHANGES. 2003-11-30 06:09:54 +00:00
Bruce Momjian 38887379a2 Reorder win32/bcc makefile mentions of thread.c for sanity. 2003-11-30 06:01:15 +00:00
Bruce Momjian edfccd3d32 Add thread.c to Borland CC build. 2003-11-30 05:54:33 +00:00
PostgreSQL Daemon 55b113257c make sure the $Id tags are converted to $PostgreSQL as well ... 2003-11-29 22:41:33 +00:00
PostgreSQL Daemon 969685ad44 $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
Peter Eisentraut 9a8b7c0f69 Cast field-length variables used in printf to int, because sometimes
they might be of a wider type.
2003-11-26 15:55:01 +00:00
Peter Eisentraut 8878cc4cd7 Rename USE_THREADS to ENABLE_THREAD_SAFETY to avoid name clash with Perl.
Fixes compilation failure with --enable-thread-safety --with-perl and Perl
5.6.1.
2003-11-24 13:16:22 +00:00
Michael Meskes 5032f83082 Fixed typo in create schema parsing. 2003-11-19 13:18:13 +00:00
Peter Eisentraut 7397819f78 Translation updates 2003-11-14 23:59:12 +00:00
Michael Meskes 135ecf8d96 Re-added forgotten cache. 2003-11-10 20:28:30 +00:00
Tom Lane 45fe4042df Restore compatibility with Tcl 8.0.* --- from ljb. 2003-11-08 20:34:36 +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
Dave Cramer 622736aa4a Added missing methods 2003-11-05 11:57:53 +00:00
Dave Cramer b720fa96fb patch for rs.previous and test case as well as patch for allowing server and port to be specified in test cases 2003-11-03 15:28:26 +00:00
Dave Cramer efea5da4fa accept url and fk action fix from Kris Jurka 2003-11-03 15:22:07 +00:00
Michael Meskes 90e53f0c16 Fixed potentially uninitialized memory bug in compatlib. 2003-11-03 14:44:28 +00:00
Peter Eisentraut 1af403e42d Complete options help and put it in less random order. 2003-11-02 12:55:24 +00:00
Tom Lane bcf4d35699 Minor cleanup of PQunescapeBytea(). Avoid unportable assumptions about
behavior of malloc and realloc when request size is 0.  Fix escape
sequence recognizer so that only valid 3-digit octal sequences are
treated as escape sequences ... isdigit() is not a correct test.
2003-10-31 17:43:10 +00:00
Michael Meskes e6152300f1 If EOF is found inside a string/comment/etc. stop parsing. 2003-10-31 14:10:41 +00:00
Tom Lane ede9b68e03 Use Tcl ByteArray objects to avoid unwanted character set translation
in libpgtcl's lo_read/lo_write commands.  Also, deal correctly with
failure return from lo_read().  ljb and Tom Lane.
2003-10-31 00:18:55 +00:00
Dave Cramer f4b4d7ce60 use the result set to set the fetchsize 2003-10-30 12:18:56 +00:00
Michael Meskes f590a5ea72 Applied patch by Dave Cramer to fix several bugs in compatlib. 2003-10-30 10:19:30 +00:00
Dave Cramer 7ecb6ede28 Patches from Oliver Jowett to fix CursorFetchTest, 7.4 now does not automatically delete cursors 2003-10-29 02:39:10 +00:00
Tom Lane 979b537522 Include -lkrb5 when needed for shlibs depending on libpq. Per report
from Johan Henselmans.
2003-10-28 21:55:58 +00:00
Michael Meskes 0262337ad3 Fixed bug with indicators when storage for the string is dynamically allocated. 2003-10-26 09:50:47 +00:00
Peter Eisentraut 002e7b3789 Translation updates 2003-10-25 18:03:21 +00:00
Bruce Momjian 6db0a6b035 Remove socket credentials defines not referenced. 2003-10-25 03:48:47 +00:00
Tom Lane 0634c01e3a Add missing semicolon, per Johann Uhrmann.
Avoids warnings from newer bisons.
2003-10-22 16:43:42 +00:00
Tom Lane 7eb67fc98b Cope with platforms that offer LONGLONG_MIN in place of the C99-spec
LLONG_MIN.  One example is AIX, per report from Andreas.
2003-10-21 15:34:34 +00:00
Michael Meskes 3b72087bf6 Install dummy sqlda.h file since this is needed for compatibility. 2003-10-20 12:54:29 +00:00
Tom Lane 9dfdbef345 Adjust libpq to avoid deadlock when both client and server want to send
data, and both have filled the transmission buffers.  One scenario where
this can happen was illustrated here:
http://archives.postgresql.org/pgsql-hackers/2003-04/msg00979.php
2003-10-19 21:36:41 +00:00
Michael Meskes d5353acbc3 Check for both Informix modes when parsing include files. 2003-10-19 13:22:33 +00:00
Tom Lane f2f7107024 Must free the pgParameterStatus chain in freePGconn(). My fault,
well spotted by Neil Conway.
2003-10-18 05:02:06 +00:00
Peter Eisentraut 578774d5f5 Translation update 2003-10-15 09:45:34 +00:00
Peter Eisentraut dee5b779fa New translation 2003-10-15 09:39:04 +00:00
Peter Eisentraut 037468eff2 New translation 2003-10-12 19:16:36 +00:00
Michael Meskes 84b35a7f76 Added missing "commit" in test case. 2003-10-12 15:19:46 +00:00
Peter Eisentraut 108f371769 Translation updates 2003-10-10 08:01:44 +00:00
Jan Wieck f8d90fcc0a Protected access to variable m_preparedCount via synchronized
function to prevent multiple threads using automatic cursors on
the same connection from stomping over each others cursor.

Jan
2003-10-09 01:17:07 +00:00
Michael Meskes 163f0b2d48 Removed my debug printf() call from numeric.c 2003-10-08 08:28:57 +00:00
Michael Meskes cfd992ecba Fixed floating point exception in long=>numeric conversion. 2003-10-07 18:36:46 +00:00
Peter Eisentraut 06e6aa236c Add missing include file. 2003-10-07 08:07:56 +00:00
Michael Meskes 3cda980298 Fixed error handling in Informix compat str to date conversion. 2003-10-07 05:46:56 +00:00