Skip to content

Commit dc88d74

Browse files
author
Peter Mount
committed
Some fixes supplied by Jon Nielsen jonfn@image.dk
1 parent 79bba23 commit dc88d74

File tree

6 files changed

+65
-357
lines changed

6 files changed

+65
-357
lines changed

src/interfaces/jdbc/CHANGELOG

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
Web May 19 00:20:00 BST 1999
2-
- Internationalisation now done. Surprising that there's 68 error messages
3-
in the driver ;-)
1+
Wed Jun 23 06:50:00 BST 1999
2+
- Fixed error in errors.properties where the arguments are 0 based not
3+
1 based
4+
- Fixed bug in postgresql.Driver where exception is thrown, then
5+
intercepted rather than being passed to the calling application.
6+
- Removed the file postgresql/CallableStatement, as it's not used and
7+
really exists in the jdbc1 & jdbc2 sub packages only.
8+
9+
Wed May 19 00:20:00 BST 1999
10+
- Internationalisation now done. Surprising that there's 68 error
11+
messages in the driver ;-)
412

513
Tue May 18 07:00:00 BST 1999
614
- Set the ImageViewer application to use transactions
@@ -12,14 +20,15 @@ Tue May 18 00:00:00 BST 1999
1220
Mon May 17 23:40:00 BST 1999
1321
- PG_Stream.close() now attempts to send the close connection message
1422
to the backend before closing the streams
15-
- Added batch support in the JDBC2, supplied by Yutaka Tanida <yutaka@marin.or.jp>
23+
- Added batch support in the JDBC2, supplied by Yutaka Tanida
24+
<yutaka@marin.or.jp>
1625
- Removed the old datestyle code. Now the driver uses only ISO.
1726
- Removed some files in the postgresql directory still in CVS that were
1827
moved since 6.4.x (DatabaseMetaData.java PreparedStatement.java
1928
ResultSetMetaData.java Statement.java)
20-
- Internationalisation of the error messages is partially implemented, however
21-
it's not enabled as it only works when the jar file is _not_ used, and
22-
work needs to be done.
29+
- Internationalisation of the error messages is partially implemented,
30+
however it's not enabled as it only works when the jar file is
31+
_not_ used, and work needs to be done.
2332

2433
Sun Apr 11 17:00:00 BST 1999
2534
- getUpdateCount() now returns the actual update count (before it

src/interfaces/jdbc/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for Java JDBC interface
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/Makefile,v 1.13 1999/05/17 22:58:18 peter Exp $
7+
# $Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/Makefile,v 1.14 1999/06/23 05:56:17 peter Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -161,7 +161,6 @@ clean:
161161
# Java is unlike C in that one source file can generate several
162162
# _Different_ file names
163163
#
164-
postgresql/CallableStatement.class: postgresql/CallableStatement.java
165164
postgresql/Connection.class: postgresql/Connection.java
166165
postgresql/DatabaseMetaData.class: postgresql/DatabaseMetaData.java
167166
postgresql/Driver.class: postgresql/Driver.java

src/interfaces/jdbc/postgresql/CallableStatement.java

Lines changed: 0 additions & 303 deletions
This file was deleted.

src/interfaces/jdbc/postgresql/Driver.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,13 @@ public java.sql.Connection connect(String url, Properties info) throws SQLExcept
104104
return (java.sql.Connection)con;
105105
} catch(ClassNotFoundException ex) {
106106
throw new PSQLException("postgresql.jvm.version",ex);
107+
} catch(PSQLException(ex1) {
108+
// re-throw the exception, otherwise it will be caught next, and a
109+
// postgresql.unusual error will be returned instead.
110+
throw ex1;
107111
} catch(Exception ex2) {
108112
throw new PSQLException("postgresql.unusual",ex2);
109113
}
110-
// The old call - remove before posting
111-
//return new Connection (host(), port(), props, database(), url, this);
112114
}
113115

114116
/**

0 commit comments

Comments
 (0)