Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
ca4ca0b0
Commit
ca4ca0b0
authored
Jun 27, 2002
by
Barry Lind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
general cleanup of jdbc code
parent
4f0de244
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
48 deletions
+3
-48
src/interfaces/jdbc/org/postgresql/Driver.java.in
src/interfaces/jdbc/org/postgresql/Driver.java.in
+3
-48
No files found.
src/interfaces/jdbc/org/postgresql/Driver.java.in
View file @
ca4ca0b0
...
...
@@ -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
*
should
return
"null"
if
it
realizes
it
is
the
wrong
kind
of
...
...
@@ -209,22 +177,9 @@ public class Driver implements java.sql.Driver
*/
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
{
//This method isn'
t
really
implemented
Properties
p
=
parseURL
(
url
,
info
);
//
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
;
return
new
DriverPropertyInfo
[
0
];
}
/*
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment