1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-26 23:43:30 +03:00
Commit Graph

1865 Commits

Author SHA1 Message Date
Dave Cramer
a6f056987e fixed problem where information from previous updates was leaking into subsequent updates patch from Shawn Green, slightly modified 2003-03-25 02:23:10 +00:00
Dave Cramer
1c4f2a63c0 added DISTINCT to the query to get cross reference. This is required when two columns in a table are both foreign keys to another table. From Peter Royal proyal@pace2020.com 2003-03-25 02:01:19 +00:00
Dave Cramer
b27eb64e61 fixed problem where information from previous updates was leaking into subsequent updates patch from Shawn Green 2003-03-25 01:57:03 +00:00
Barry Lind
74a665a8b3 New build number 2003-03-24 04:01:38 +00:00
Barry Lind
8e2ca1a7d8 Backport fix for parsing acls (didn't correctly interpret null acl to mean
table owner has privs)
 Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
2003-03-24 03:49:49 +00:00
Barry Lind
e02ace4418 Backport patch to work around a server bug. Server incorrectly handles the
following:  select 1; commit; set autocommit true;
If this is submitted in one call to the server (the select 1 doesn't start a
new transaction like it should), however if the select 1 is sent as a separate
call then it works correctly.

Modified Files:
 Tag: REL7_3_STABLE
	jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
2003-03-19 04:09:09 +00:00
Barry Lind
d10ed0263e Applied translation fixes
Modified Files:
  Tag: REL7_3_STABLE
 	errors_zh_TW.properties
2003-03-18 05:24:36 +00:00
Barry Lind
1ad6337fd5 Backport fix for parsing \n in updateable result sets to 7.3 branch
Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
2003-03-14 05:38:36 +00:00
Barry Lind
8f390674de Backport batch update error message improvements to 7.3 branch
Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/errors.properties
 	jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
 	jdbc/org/postgresql/util/PSQLException.java
2003-03-14 01:23:08 +00:00
Barry Lind
899c711070 Back ported patches from head to 7.3 branch (fixes for NPE in result set absolute() and NPE when logging enabled)
Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
 	jdbc/org/postgresql/util/PSQLException.java
2003-03-08 06:09:37 +00:00
D'Arcy J.M. Cain
db34282fe3 Back patch bug fix to quote function. 2003-02-27 10:42:12 +00:00
Barry Lind
d47a0f7c76 Backport a fix from 7.4 to 7.3 to better handle case in updateable result sets.
This backports part of the fix made in version 1.11.

 Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
2003-02-24 16:38:25 +00:00
Barry Lind
c73a769076 Applied patch to update translation file, submitted by Zhenbang Wei
Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/errors_zh_TW.properties
2003-02-12 20:39:53 +00:00
Barry Lind
e4851e54ca Backport patch from Fernando Nasser and Harald Krake to fix an invalid datatype problem.
Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
2003-02-12 17:14:49 +00:00
Barry Lind
fa0c09bffc Backport a patch from Kris Jurka to 7.3. Allows getTables() method to work
against 7.1 servers.

 Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
2003-02-12 06:01:02 +00:00
Barry Lind
d3038e6e2c up build # to 108 2003-02-09 23:43:41 +00:00
Barry Lind
3448835967 Merge changes from head to 7.3 branch: better error message on character set conversion problems and patch from Kris Jurka for numeric scale
Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/errors.properties
 	jdbc/org/postgresql/core/Encoding.java
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
2003-02-09 23:41:46 +00:00
Dave Cramer
62ca0fce8f Fix for rollback SQLException from Kris Jurka 2003-02-04 11:16:00 +00:00
Tom Lane
0f36c544d9 Brand 7.3.2. 2003-02-02 19:56:46 +00:00
Tom Lane
3be050da32 Prevent core dump from calling Tcl_DontCallWhenDeleted() with a null
interp pointer.  Per report from Gerhard Hintermayer.
2003-02-01 00:22:23 +00:00
Tom Lane
a85d1d5468 Apply ljb's patch to prevent both memory leak and core dump during
connection shutdown.  This is a grotty workaround for a Tcl bug, but
said bug has been there long enough that I'm not holding my breath
for a real fix.  Per discussions and testing from ljb and g.hintermayer.
2003-02-01 00:07:19 +00:00
Tom Lane
5c508b7da1 Fix regression in .pgpass support. From Neil Conway. 2003-01-30 19:50:07 +00:00
Tom Lane
08b798e2ba Back-patch typprtlen fix, two other minor post-7.3 fixes. 2003-01-21 19:57:50 +00:00
Barry Lind
3b8147a003 Bumped up build number to 107 2003-01-14 09:40:48 +00:00
Barry Lind
3f479efa2f Backport to 7.3 of patch to correctly handle fractional seconds
Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
 	jdbc/org/postgresql/test/jdbc2/TimestampTest.java
2003-01-14 09:15:35 +00:00
Barry Lind
3ff4496454 Patch from Kris Jurka to improve the performance of getImportedKeys(). The
fix uses explicit joins to avoid using the genetic query optimizer for
consistent results.

 Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
2003-01-14 05:07:56 +00:00
Bruce Momjian
ce83fc68aa The second was that renegotiation was just plain broken. I can't
believe I didn't notice this before -- once 64k was sent to/from the
server the client would crash.  Basicly, in 7.3 the server SSL code set
the initial state to "about to renegotiate" without actually starting
the renegotiation.  In addition, the server and client didn't properly
handle the SSL_ERROR_WANT_(READ|WRITE) error.  This is fixed in the
second patch.

Nathan Mueller
2003-01-08 23:18:35 +00:00
Bruce Momjian
671231f588 I was playing around with 7.3.1 and found some more SSL problems. The
first, that I missed when checking over 7.3.1, was that the client
method was switched to SSLv23 along with the server.  The SSLv23 client
method does SSLv2 by default, but can also understand SSLv3.  In our
situation the SSLv2 backwords compatibility is really only needed on the
server.  This is the first patch.

The last thing is that I found a way for the server to understand SSLv2
HELLO messages (sent by pre-7.3 clients) but then get them to talk
SSLv3.  This is the last one.

Nathan Mueller
2003-01-08 22:57:05 +00:00
Bruce Momjian
c8b0ab0bd3 Fix pgpass to work with PQconnectDB().
Backpatch to 7.3.X.

Report from ljb.
2003-01-08 21:33:53 +00:00
Peter Eisentraut
b19a0c70d2 Translation updates 2003-01-04 10:26:28 +00:00
PostgreSQL Daemon
d2f0761b82 From the SSL_CTX_new man page:
"SSLv23_method(void), SSLv23_server_method(void), SSLv23_client_method(void)

 A TLS/SSL connection established with these methods will understand the SSLv2,
 SSLv3, and TLSv1 protocol. A client will send out SSLv2 client hello messages
 and will indicate that it also understands SSLv3 and TLSv1. A server will
 understand SSLv2, SSLv3, and TLSv1 client hello messages. This is the best
 choice when compatibility is a concern."

This will maintain backwards compatibility for those us that don't use
TLS connections ...
2002-12-18 13:20:03 +00:00
Bruce Momjian
148e7e06bf Stamp 7.3.1. 2002-12-18 02:07:30 +00:00
Bruce Momjian
9056af5b63 Increment libpq major number for 7.3.1 and minor for 7.4. 2002-12-13 22:18:22 +00:00
Bruce Momjian
f28802cac8 Bump version for 7.3 and 7.4. 2002-12-11 04:08:05 +00:00
Peter Eisentraut
ac3534f973 Translation updates 2002-12-10 20:00:27 +00:00
Dave Cramer
0ea3b7b86f changed sort of column names to sort by attnum, not attname 2002-12-05 01:09:58 +00:00
Barry Lind
ce35ce91f9 Fix a stupid cut and paste error from the commit last night.
Modified Files:
  Tag: REL7_3_STABLE
 	AbstractJdbc2Statement.java
2002-11-20 20:42:24 +00:00
Barry Lind
e994389d7b Backport bug with executeBatch. This bug was a regression from 7.2 and has
been reported by Marko Strukelj and Keith Wannamaker

 Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
 	jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
 	jdbc/org/postgresql/test/jdbc2/BatchExecuteTest.java
2002-11-20 07:54:27 +00:00
Barry Lind
1a34e0e23b Backpatch from head: fixes for a threading bug, a problem with setNull involving
server prepared statements and an improved error message

 Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/errors.properties
 	jdbc/org/postgresql/core/Encoding.java
 	jdbc/org/postgresql/core/QueryExecutor.java
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
2002-11-14 05:54:39 +00:00
Peter Eisentraut
f2ec243389 Update German translations. 2002-11-13 21:30:39 +00:00
Barry Lind
76c89b3ec1 Merge fix from head for proper join to pg_description
Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
 	jdbc/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java
2002-11-11 07:30:08 +00:00
Tom Lane
f2b5ed92e2 Remove inappropriate inclusions of OpenSSL internal header e_os.h,
as well as unnecessary (and incorrect on Windows) assignments to
errno/SOCK_ERRNO.
2002-11-07 18:47:08 +00:00
Tom Lane
7c1364bd19 Remove no-longer-needed inclusions to improve backward compatibility
with older bison versions.
2002-11-07 06:06:39 +00:00
Peter Eisentraut
2e28ef3663 Translation updates 2002-11-05 23:37:47 +00:00
Tom Lane
a44b69ef4c Back-patch recent file removals into REL7_3_STABLE branch. 2002-11-04 21:27:47 +00:00
CVS to git conversion script
503b41f6e5 This commit was manufactured by cvs2git to create branch 'REL7_3_STABLE'.
Sprout from master 2002-11-04 17:14:29 UTC Tom Lane <tgl@sss.pgh.pa.us> 'Remove extraneous semicolons after routine bodies.  These don't bother'
Cherrypick from master 2002-09-04 07:23:04 UTC Bruce Momjian <bruce@momjian.us> 'Brand 7.3.  Ready for beta!':
    contrib/xml/README
    contrib/retep/CHANGELOG
    contrib/retep/Implementation
    contrib/retep/Makefile
    contrib/retep/README
    contrib/retep/build.xml
    contrib/retep/data/cds.dtd
    contrib/retep/data/cds.xml
    contrib/retep/uk/org/retep/tools.properties
    contrib/retep/uk/org/retep/dtu/DCollection.java
    contrib/retep/uk/org/retep/dtu/DConstants.java
    contrib/xml/pgxml_dom.source
    contrib/retep/uk/org/retep/dtu/DElement.java
    contrib/retep/uk/org/retep/dtu/DEnvironment.java
    contrib/retep/uk/org/retep/dtu/DModule.java
    contrib/retep/uk/org/retep/dtu/DModuleXML.java
    contrib/retep/uk/org/retep/dtu/DNode.java
    contrib/retep/uk/org/retep/dtu/DProcessor.java
    contrib/retep/uk/org/retep/dtu/DTransform.java
    contrib/retep/uk/org/retep/tools/Tool.java
    contrib/retep/uk/org/retep/util/ExceptionDialog.java
    contrib/retep/uk/org/retep/util/Globals.java
    contrib/retep/uk/org/retep/util/Logger.java
    contrib/retep/uk/org/retep/util/Main.java
    contrib/retep/uk/org/retep/util/StandaloneApp.java
    contrib/retep/uk/org/retep/util/hba/Editor.java
    contrib/retep/uk/org/retep/util/misc/IPAddress.java
    contrib/retep/uk/org/retep/util/misc/PropertiesIO.java
    contrib/retep/uk/org/retep/util/misc/WStringTokenizer.java
    contrib/retep/uk/org/retep/util/models/HBATableModel.java
    contrib/retep/uk/org/retep/util/models/PropertiesTableModel.java
    contrib/retep/uk/org/retep/util/proped/PropertyEditor.java
    contrib/retep/uk/org/retep/xml/core/XMLFactory.java
    contrib/retep/uk/org/retep/xml/core/XMLFactoryException.java
    contrib/retep/uk/org/retep/xml/jdbc/XMLDatabase.java
    contrib/retep/uk/org/retep/xml/jdbc/XMLResultSet.java
    contrib/retep/uk/org/retep/xml/parser/TagListener.java
    contrib/retep/uk/org/retep/xml/test/XMLExport.java
    doc/src/sgml/libpgeasy.sgml
    doc/src/sgml/odbc.sgml
    contrib/xml/pgxml.source
    doc/src/sgml/recovery.sgml
    src/test/regress/expected/geometry-bsdi-precision.out
    contrib/retep/uk/org/retep/xml/parser/TagHandler.java
    doc/src/sgml/version.sgml
    doc/src/sgml/y2k.sgml
    contrib/retep/retep.jpx
    src/interfaces/jdbc/utils/CheckVersion.java
    src/interfaces/jdbc/utils/changelog.pl
    contrib/retep/uk/org/retep/util/hba/Main.java
    contrib/retep/uk/org/retep/util/hba/Record.java
    contrib/retep/uk/org/retep/util/proped/Main.java
    src/interfaces/jdbc/CHANGELOG
    src/interfaces/jdbc/Implementation
    src/interfaces/jdbc/utils/buildDriver
    src/interfaces/jdbc/jdbc.jpx
2002-11-04 17:14:30 +00:00
Tom Lane
04eb419809 Fix inclusion order, per Andreas. 2002-11-04 14:27:21 +00:00
Barry Lind
fdf6b4ff93 Applied two patches from Kris Jurka.
- First fixes a problem with a recent patch allowing setNull on updateable
    resultsets
  - Second removed toLower() calls on database object names.  Leave it to
    the caller to correctly pass lower, upper or mixed case.  The driver
    already has methods that the caller can use to determine that postgres
    stores identifiers in lowercase. (unless the identifier was quoted when
    created).

 Modified Files:
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
 	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
2002-11-04 06:42:33 +00:00
Tom Lane
cab9437a43 Arrange to compile flex output files as inclusions into other files
(usually bison output files), not as standalone files.  This hack
works around flex's insistence on including <stdio.h> before we are
able to include postgres.h; postgres.h will already be read before
the compiler starts to read the flex output file.  Needed for largefile
support on some platforms.
2002-11-01 22:52:34 +00:00
Barry Lind
a50d08f793 Return something meaningful for Statement.getFetchSize(). Previously we were
returning an exception when this method was called.

Modified Files:
	jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
2002-10-30 04:33:29 +00:00