Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
ca4ca0b0
Commit
ca4ca0b0
authored
22 years ago
by
Barry Lind
Browse files
Options
Downloads
Patches
Plain Diff
general cleanup of jdbc code
parent
4f0de244
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/interfaces/jdbc/org/postgresql/Driver.java.in
+3
-48
3 additions, 48 deletions
src/interfaces/jdbc/org/postgresql/Driver.java.in
with
3 additions
and
48 deletions
src/interfaces/jdbc/org/postgresql/Driver.java.in
+
3
−
48
View file @
ca4ca0b0
...
@@ -50,38 +50,6 @@ public class Driver implements java.sql.Driver
...
@@ -50,38 +50,6 @@ public class Driver implements java.sql.Driver
}
}
}
}
/*
* Construct a new driver and register it with DriverManager
*
* @exception SQLException for who knows what!
*/
public Driver() throws SQLException
{
// Set the connectClass variable so that future calls will handle the correct
// base class
//if (System.getProperty("java.version").startsWith("1.1")) {
//connectClass = "postgresql.jdbc1.Connection";
//} else {
//connectClass = "postgresql.jdbc2.Connection";
//}
// Ok, when the above code was introduced in 6.5 it's intention was to allow
// the driver to automatically detect which version of JDBC was being used
// and to detect the version of the JVM accordingly.
//
// It did this by using the java.version parameter.
//
// However, it was quickly discovered that not all JVM's returned an easily
// parseable version number (ie "1.2") and some don't return a value at all.
// The latter came from a discussion on the advanced java list.
//
// So, to solve this, I've moved the decision out of the driver, and it's now
// a compile time parameter.
//
// For this to work, the Makefile creates a pseudo class which contains the class
// name that will actually make the connection.
}
/*
/*
* Try to make a database connection to the given URL. The driver
* Try to make a database connection to the given URL. The driver
* should return "null" if it realizes it is the wrong kind of
* should return "null" if it realizes it is the wrong kind of
...
@@ -209,22 +177,9 @@ public class Driver implements java.sql.Driver
...
@@ -209,22 +177,9 @@ public class Driver implements java.sql.Driver
*/
*/
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
{
{
//This method isn't really implemented
Properties p = parseURL(url, info);
Properties p = parseURL(url, info);
return new DriverPropertyInfo[0];
// naughty, but its best for speed. If anyone adds a property here, then
// this _MUST_ be increased to accomodate them.
DriverPropertyInfo d, dpi[] = new DriverPropertyInfo[0];
//int i=0;
//dpi[i++] = d = new DriverPropertyInfo("auth",p.getProperty("auth","default"));
//d.description = "determines if password authentication is used";
//d.choices = new String[4];
//d.choices[0]="default"; // Get value from org.postgresql.auth property, defaults to trust
//d.choices[1]="trust"; // No password authentication
//d.choices[2]="password"; // Password authentication
//d.choices[3]="ident"; // Ident (RFC 1413) protocol
return dpi;
}
}
/*
/*
...
@@ -394,7 +349,7 @@ public class Driver implements java.sql.Driver
...
@@ -394,7 +349,7 @@ public class Driver implements java.sql.Driver
}
}
/*
/*
* @return the port number portion of the URL or
-1
if no port was specified
* @return the port number portion of the URL or
the default
if no port was specified
*/
*/
public int port()
public int port()
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment