Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit65818b6

Browse files
committed
From: Peter T Mount <patches@maidast.demon.co.uk>
This patch fixes a few results in DatabaseMetaData, and updates the READMEand TODO files (the later being a new file).The TODO file lists the things that need to be looked into after 6.2 isreleased, and describes the problem with Large Objects.
1 parent4603233 commit65818b6

File tree

3 files changed

+23
-24
lines changed

3 files changed

+23
-24
lines changed

‎src/interfaces/jdbc/Makefile

Lines changed: 2 additions & 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.1 1997/09/26 08:22:21 scrappy Exp $
7+
# $Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/Makefile,v 1.2 1997/09/29 20:11:42 scrappy Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -56,7 +56,7 @@ postgresql.jar: $(OBJS)
5656
clean:
5757
$(FIND). -name"*~" -exec$(RM) {}\;
5858
$(FIND). -name"*.class" -exec$(RM) {}\;
59-
$(RM)postgres.jar
59+
$(RM)postgresql.jar
6060

6161
#######################################################################
6262
# This helps make workout what classes are from what source files

‎src/interfaces/jdbc/README

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ PS: When you run make, don't worry if you see just one or two calls to javac.
2929
it will compile it automatically. This reduces the numer of calls to javac
3030
that make has to do.
3131

32+
Possible problems
33+
34+
You may see a message similar to:
35+
36+
postgresql/Driver.java:87: interface java.sql.Connection is an interface. It can't be instantiated.
37+
return new Connection (host(), port(), props, database(), url, this);
38+
39+
This is caused by not having the current directory in your CLASSPATH. Under
40+
Linux/Solaris, unset the CLASSPATH environment variable, and rerun make.
41+
3242
---------------------------------------------------------------------------
3343

3444
INSTALLING THE DRIVER
@@ -128,20 +138,6 @@ methods to retrive these types.
128138
Also, when using these classes, their toString() methods return the correct
129139
syntax for writing these to the database.
130140

131-
TODO
132-
----
133-
134-
Currently only host authentication is supported. Password authentication
135-
will be in there in a few days.
136-
137-
Incorporating more features from the other driver (esp. in the MetaData's)
138-
139-
Large Object support will also go in there, although it may not be done as
140-
pure JDBC, but as an extra API.
141-
142-
Producing some documentation with javadoc - not all of the sources have them
143-
yet.
144-
145141
---------------------------------------------------------------------------
146142

147143
Peter T Mount, August 30 1997

‎src/interfaces/jdbc/postgresql/DatabaseMetaData.java

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public boolean usesLocalFilePerTable() throws SQLException
249249
*/
250250
publicbooleansupportsMixedCaseIdentifiers()throwsSQLException
251251
{
252-
returntrue;
252+
returnfalse;
253253
}
254254

255255
/**
@@ -271,7 +271,7 @@ public boolean storesUpperCaseIdentifiers() throws SQLException
271271
*/
272272
publicbooleanstoresLowerCaseIdentifiers()throwsSQLException
273273
{
274-
returnfalse;
274+
returntrue;
275275
}
276276

277277
/**
@@ -348,7 +348,7 @@ public boolean storesMixedCaseQuotedIdentifiers() throws SQLException
348348
*/
349349
publicStringgetIdentifierQuoteString()throwsSQLException
350350
{
351-
returnnewString(" ");
351+
returnnull;
352352
}
353353

354354
/**
@@ -605,15 +605,17 @@ public boolean supportsMultipleTransactions() throws SQLException
605605

606606
/**
607607
* Can columns be defined as non-nullable. A JDBC Compliant driver
608-
* always returns true. We dont support NOT NULL, so we are not
609-
* JDBC compliant.
608+
* always returns true.
609+
*
610+
* This changed from false to true in v6.2 of the driver, as this
611+
* support was added to the backend.
610612
*
611613
* @return true if so
612614
* @exception SQLException if a database access error occurs
613615
*/
614616
publicbooleansupportsNonNullableColumns()throwsSQLException
615617
{
616-
returnfalse;
618+
returntrue;
617619
}
618620

619621
/**
@@ -801,7 +803,8 @@ public boolean isCatalogAtStart() throws SQLException
801803
*/
802804
publicStringgetCatalogSeparator()throwsSQLException
803805
{
804-
returnnewString(".");
806+
// PM Sep 29 97 - changed from "." as we don't support catalogs.
807+
returnnewString("");
805808
}
806809

807810
/**
@@ -1417,7 +1420,7 @@ public boolean dataDefinitionCausesTransactionCommit() throws SQLException
14171420
*/
14181421
publicbooleandataDefinitionIgnoredInTransactions()throwsSQLException
14191422
{
1420-
returnfalse;
1423+
returntrue;
14211424
}
14221425

14231426
/**

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp