1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-28 11:44:57 +03:00
Commit Graph

1882 Commits

Author SHA1 Message Date
Peter Eisentraut
6122f38b0a Translation updates 2004-04-05 09:02:37 +00:00
Tom Lane
2d558b2baa Brand 7.3.6. 2004-03-02 00:44:55 +00:00
Tom Lane
7af352f103 Brand 7.3.5. 2003-12-02 16:26:00 +00:00
Joe Conway
8582f21afd 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:52:37 +00:00
Tom Lane
fe979ae406 Back-patch removal of unnecessary inclusion of <crypt.h>, so that
7.3.5 will build out-of-the-box on Solaris.
2003-10-31 18:14:11 +00:00
Tom Lane
b0a0a80618 Sigh, I'm an idiot ... SSL_ERROR_WANT_READ isn't an error condition
at all, it just means 'no data available yet'.
2003-08-22 21:57:44 +00:00
Barry Lind
8ba1fa7db1 Backport to 7.3. Third try to fix the sql injection
vulnerability.  This fix completely removes the ability (hack) of being able
to bind a list of values in an in clause.  It was demonstrated that by allowing
that functionality you open up the possibility for certain types of
sql injection attacks.  The previous fix attempts all focused on preventing
the insertion of additional sql statements (the semi-colon problem:
xxx; any new sql statement here).  But that still left the ability to
change the where clause on the current statement or perform a subselect
which can circumvent applicaiton security logic and/or allow you to call
any stored function.

 Modified Files:
  Tag: REL7_3_STABLE
	jdbc/org/postgresql/Driver.java.in
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
2003-08-07 17:56:27 +00:00
Tom Lane
5365a0cf52 Fix some more problems with testing error returns from SSL. 2003-08-04 17:25:29 +00:00
Barry Lind
83bc9b9d2e Patch to fix additional SQL injection vulnerabilities reported by Oliver Jowett
and Dmitry Tkach
 Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/Driver.java.in
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
2003-07-23 23:34:31 +00:00
Bruce Momjian
1ecc0fdb00 Stamp 7.3.4 release. 2003-07-23 04:10:16 +00:00
Barry Lind
5d882f78ae Fix to prevent SQL injection attacks when calling setObject(int,Object,int)
where the Object is a String and the type is numeric (i.e. INTEGER,LONG,etc).
The fix applies the standard escaping for these values.

 Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/Driver.java.in
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
2003-07-22 05:13:05 +00:00
Tom Lane
9bc3438b03 Brand 7.3.3. 2003-05-22 20:17:24 +00:00
Barry Lind
f3ed902421 Upped JDBC build number to 110 for the 7.3.3 release
Modified Files:
  Tag: REL7_3_STABLE
 	Driver.java.in
2003-05-19 04:12:52 +00:00
Peter Eisentraut
977adedda8 Small translation updates for 7.3.3 release. 2003-05-18 23:51:41 +00:00
Barry Lind
52eeb494e7 Applied patches from Kris Jurka fixing a string tokenizing problem and
fixing an order by problem for index metadata results.
Also includes removing some unused code as well as a fix to the toString
method on statement.

 Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
2003-04-17 04:19:55 +00:00
Tom Lane
8d477bd33a Fix error recovery for SSL_read/SSL_write calls. 2003-04-10 23:03:13 +00:00
Dave Cramer
6ee2c29354 added addDataType to the interface 2003-04-08 17:26:39 +00:00
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