Skip to content

Commit 1933b45

Browse files
author
Igor Polevoy
committed
#491 Incorrect conversion of TIME to java.sql.Time in JTDS driver
1 parent 9eb2b96 commit 1933b45

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

activejdbc/src/test/java/org/javalite/activejdbc/ModelTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,7 @@ public void shouldGenerateValidUpdateSQLWithTime() {
517517
the(Base.exec(updateSql)).shouldBeEqual(1);
518518

519519
alarm = Alarm.findById(alarm.getId());
520-
System.out.println("ALARM: " + alarm.get("alarm_time").getClass() + " " + alarm.get("alarm_time"));
521-
the(alarm.getTime("alarm_time").toString()).shouldBeEqual(t);
520+
the(alarm.getString("alarm_time").startsWith(t)).shouldBeTrue();
522521
}
523522

524523
@Test(expected = NoSuchElementException.class)

0 commit comments

Comments
 (0)