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

Commitd013dbe

Browse files
author
Barry Lind
committed
Applied patch from Ryouichi Matsuda <r-matuda@sra.co.jp> where the jdbc
driver was not properly handling timestamptz datatype when using thegetObject() method on ResultSet. Fix adds this datatype to the object mappings.
1 parenteb410b6 commitd013dbe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎src/interfaces/jdbc/org/postgresql/jdbc1/Connection.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
importorg.postgresql.util.*;
1818

1919
/*
20-
* $Id: Connection.java,v 1.14 2001/11/25 23:26:58 barry Exp $
20+
* $Id: Connection.java,v 1.15 2002/01/15 06:55:13 barry Exp $
2121
*
2222
* A Connection represents a session with a specific database.Within the
2323
* context of a Connection, SQL statements are executed and results are
@@ -180,7 +180,7 @@ public int getSQLType(String pgTypeName)
180180
"bool",
181181
"date",
182182
"time",
183-
"abstime","timestamp"
183+
"abstime","timestamp","timestamptz"
184184
};
185185

186186
/*
@@ -204,7 +204,7 @@ public int getSQLType(String pgTypeName)
204204
Types.BIT,
205205
Types.DATE,
206206
Types.TIME,
207-
Types.TIMESTAMP,Types.TIMESTAMP
207+
Types.TIMESTAMP,Types.TIMESTAMP,Types.TIMESTAMP
208208
};
209209

210210

‎src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
importorg.postgresql.util.*;
1818

1919
/*
20-
* $Id: Connection.java,v 1.16 2001/11/25 23:26:59 barry Exp $
20+
* $Id: Connection.java,v 1.17 2002/01/15 06:55:13 barry Exp $
2121
*
2222
* A Connection represents a session with a specific database.Within the
2323
* context of a Connection, SQL statements are executed and results are
@@ -303,7 +303,7 @@ public int getSQLType(String pgTypeName)
303303
"bool",
304304
"date",
305305
"time",
306-
"abstime","timestamp",
306+
"abstime","timestamp","timestamptz",
307307
"_bool","_char","_int2","_int4","_text",
308308
"_oid","_varchar","_int8","_float4","_float8",
309309
"_abstime","_date","_time","_timestamp","_numeric",
@@ -331,7 +331,7 @@ public int getSQLType(String pgTypeName)
331331
Types.BIT,
332332
Types.DATE,
333333
Types.TIME,
334-
Types.TIMESTAMP,Types.TIMESTAMP,
334+
Types.TIMESTAMP,Types.TIMESTAMP,Types.TIMESTAMP,
335335
Types.ARRAY,Types.ARRAY,Types.ARRAY,Types.ARRAY,Types.ARRAY,
336336
Types.ARRAY,Types.ARRAY,Types.ARRAY,Types.ARRAY,Types.ARRAY,
337337
Types.ARRAY,Types.ARRAY,Types.ARRAY,Types.ARRAY,Types.ARRAY,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp