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
b4ed1edb
Commit
b4ed1edb
authored
Dec 18, 2003
by
Dave Cramer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patch for new OID74Test
parent
b9deede2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
src/interfaces/jdbc/org/postgresql/test/TestUtil.java
src/interfaces/jdbc/org/postgresql/test/TestUtil.java
+13
-1
No files found.
src/interfaces/jdbc/org/postgresql/test/TestUtil.java
View file @
b4ed1edb
...
@@ -2,6 +2,7 @@ package org.postgresql.test;
...
@@ -2,6 +2,7 @@ package org.postgresql.test;
import
java.sql.*
;
import
java.sql.*
;
import
junit.framework.TestCase
;
import
junit.framework.TestCase
;
import
java.util.Properties
;
/*
/*
* Utility class for JDBC tests
* Utility class for JDBC tests
...
@@ -61,10 +62,21 @@ public class TestUtil
...
@@ -61,10 +62,21 @@ public class TestUtil
*/
*/
public
static
java
.
sql
.
Connection
openDB
()
public
static
java
.
sql
.
Connection
openDB
()
{
{
return
openDB
(
new
Properties
());
}
/*
* Helper - opens a connection with the allowance for passing
* additional parameters, like "compatible".
*/
public
static
java
.
sql
.
Connection
openDB
(
Properties
props
)
{
props
.
setProperty
(
"user"
,
getUser
());
props
.
setProperty
(
"password"
,
getPassword
());
try
try
{
{
Class
.
forName
(
"org.postgresql.Driver"
);
Class
.
forName
(
"org.postgresql.Driver"
);
return
java
.
sql
.
DriverManager
.
getConnection
(
getURL
(),
getUser
(),
getPassword
()
);
return
java
.
sql
.
DriverManager
.
getConnection
(
getURL
(),
props
);
}
}
catch
(
ClassNotFoundException
ex
)
catch
(
ClassNotFoundException
ex
)
{
{
...
...
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