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
e70b4831
Commit
e70b4831
authored
Jun 27, 1999
by
Peter Mount
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some minor bug fixes
parent
fe90c548
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
33 deletions
+23
-33
src/interfaces/jdbc/CHANGELOG
src/interfaces/jdbc/CHANGELOG
+6
-0
src/interfaces/jdbc/postgresql/Driver.java
src/interfaces/jdbc/postgresql/Driver.java
+1
-1
src/interfaces/jdbc/postgresql/jdbc1/ResultSet.java
src/interfaces/jdbc/postgresql/jdbc1/ResultSet.java
+8
-16
src/interfaces/jdbc/postgresql/jdbc2/ResultSet.java
src/interfaces/jdbc/postgresql/jdbc2/ResultSet.java
+8
-16
No files found.
src/interfaces/jdbc/CHANGELOG
View file @
e70b4831
Sun Jun 27 12:00:00 BST 1999
- Fixed typo in postgresql.Driver that prevented compilation
- Implemented getTimestamp() fix submitted by Philipp Matthias Hahn
<pmhahn@titan.lahn.de>
- Cleaned up some comments in Connection
Wed Jun 23 06:50:00 BST 1999
Wed Jun 23 06:50:00 BST 1999
- Fixed error in errors.properties where the arguments are 0 based not
- Fixed error in errors.properties where the arguments are 0 based not
1 based
1 based
...
...
src/interfaces/jdbc/postgresql/Driver.java
View file @
e70b4831
...
@@ -104,7 +104,7 @@ public class Driver implements java.sql.Driver
...
@@ -104,7 +104,7 @@ public class Driver implements java.sql.Driver
return
(
java
.
sql
.
Connection
)
con
;
return
(
java
.
sql
.
Connection
)
con
;
}
catch
(
ClassNotFoundException
ex
)
{
}
catch
(
ClassNotFoundException
ex
)
{
throw
new
PSQLException
(
"postgresql.jvm.version"
,
ex
);
throw
new
PSQLException
(
"postgresql.jvm.version"
,
ex
);
}
catch
(
PSQLException
(
ex1
)
{
}
catch
(
PSQLException
ex1
)
{
// re-throw the exception, otherwise it will be caught next, and a
// re-throw the exception, otherwise it will be caught next, and a
// postgresql.unusual error will be returned instead.
// postgresql.unusual error will be returned instead.
throw
ex1
;
throw
ex1
;
...
...
src/interfaces/jdbc/postgresql/jdbc1/ResultSet.java
View file @
e70b4831
...
@@ -434,25 +434,17 @@ public class ResultSet extends postgresql.ResultSet implements java.sql.ResultSe
...
@@ -434,25 +434,17 @@ public class ResultSet extends postgresql.ResultSet implements java.sql.ResultSe
public
Timestamp
getTimestamp
(
int
columnIndex
)
throws
SQLException
public
Timestamp
getTimestamp
(
int
columnIndex
)
throws
SQLException
{
{
String
s
=
getString
(
columnIndex
);
String
s
=
getString
(
columnIndex
);
if
(
s
==
null
)
return
null
;
SimpleDateFormat
df
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:sszzz"
);
SimpleDateFormat
df
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:sszzz"
);
if
(
s
!=
null
)
{
int
TZ
=
new
Float
(
s
.
substring
(
19
)).
intValue
();
TZ
=
TZ
*
60
*
60
*
1000
;
TimeZone
zone
=
TimeZone
.
getDefault
();
zone
.
setRawOffset
(
TZ
);
String
nm
=
zone
.
getID
();
s
=
s
.
substring
(
0
,
19
)
+
nm
;
try
{
try
{
java
.
util
.
Date
d
=
df
.
parse
(
s
);
return
new
Timestamp
(
df
.
parse
(
s
).
getTime
());
return
new
Timestamp
(
d
.
getTime
());
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
throw
new
PSQLException
(
"postgresql.res.badtimestamp"
,
new
Integer
(
e
.
getErrorOffset
()),
s
);
throw
new
PSQLException
(
"postgresql.res.badtimestamp"
,
new
Integer
(
e
.
getErrorOffset
()),
s
);
}
}
}
}
return
null
;
// SQL NULL
}
/**
/**
* A column value can be retrieved as a stream of ASCII characters
* A column value can be retrieved as a stream of ASCII characters
...
...
src/interfaces/jdbc/postgresql/jdbc2/ResultSet.java
View file @
e70b4831
...
@@ -436,25 +436,17 @@ public class ResultSet extends postgresql.ResultSet implements java.sql.ResultSe
...
@@ -436,25 +436,17 @@ public class ResultSet extends postgresql.ResultSet implements java.sql.ResultSe
public
Timestamp
getTimestamp
(
int
columnIndex
)
throws
SQLException
public
Timestamp
getTimestamp
(
int
columnIndex
)
throws
SQLException
{
{
String
s
=
getString
(
columnIndex
);
String
s
=
getString
(
columnIndex
);
if
(
s
==
null
)
return
null
;
SimpleDateFormat
df
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:sszzz"
);
SimpleDateFormat
df
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:sszzz"
);
if
(
s
!=
null
)
{
int
TZ
=
new
Float
(
s
.
substring
(
19
)).
intValue
();
TZ
=
TZ
*
60
*
60
*
1000
;
TimeZone
zone
=
TimeZone
.
getDefault
();
zone
.
setRawOffset
(
TZ
);
String
nm
=
zone
.
getID
();
s
=
s
.
substring
(
0
,
19
)
+
nm
;
try
{
try
{
java
.
util
.
Date
d
=
df
.
parse
(
s
);
return
new
Timestamp
(
df
.
parse
(
s
).
getTime
());
return
new
Timestamp
(
d
.
getTime
());
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
throw
new
PSQLException
(
"postgresql.res.badtimestamp"
,
new
Integer
(
e
.
getErrorOffset
()),
s
);
throw
new
PSQLException
(
"postgresql.res.badtimestamp"
,
new
Integer
(
e
.
getErrorOffset
()),
s
);
}
}
}
}
return
null
;
// SQL NULL
}
/**
/**
* A column value can be retrieved as a stream of ASCII characters
* A column value can be retrieved as a stream of ASCII characters
...
...
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