Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
test: add "as" to test queries so they work with PostgreSQL 8.3
- Loading branch information
|
@@ -220,8 +220,8 @@ public void testGetTimestamp() throws SQLException { |
|
|
@Test |
|
|
public void testGetJavaUtilDate() throws SQLException { |
|
|
Statement stmt = _conn.createStatement(); |
|
|
ResultSet rs = stmt.executeQuery("select TIMESTAMP '2004-10-19 10:23:54'::timestamp timestamp_without_time_zone_column" |
|
|
+ ", null::timestamp null_timestamp"); |
|
|
ResultSet rs = stmt.executeQuery("select TIMESTAMP '2004-10-19 10:23:54'::timestamp as timestamp_without_time_zone_column" |
|
|
+ ", null::timestamp as null_timestamp"); |
|
|
try { |
|
|
assertTrue(rs.next()); |
|
|
Calendar calendar = GregorianCalendar.getInstance(); |
|
@@ -288,8 +288,8 @@ private void runGetTimestampWithTimeZone(TimeZone timeZone, String zoneString) t |
|
|
public void testGetCalendar() throws SQLException { |
|
|
Statement stmt = _conn.createStatement(); |
|
|
|
|
|
ResultSet rs = stmt.executeQuery("select TIMESTAMP '2004-10-19 10:23:54'::timestamp timestamp_without_time_zone_column" |
|
|
+ ", TIMESTAMP '2004-10-19 10:23:54+02'::timestamp timestamp_with_time_zone_column, null::timestamp null_timestamp"); |
|
|
ResultSet rs = stmt.executeQuery("select TIMESTAMP '2004-10-19 10:23:54'::timestamp as timestamp_without_time_zone_column" |
|
|
+ ", TIMESTAMP '2004-10-19 10:23:54+02'::timestamp as timestamp_with_time_zone_column, null::timestamp as null_timestamp"); |
|
|
try { |
|
|
assertTrue(rs.next()); |
|
|
Calendar calendar = GregorianCalendar.getInstance(); |
|
|