public static Vector testInstancesWithBindingAndNoCalendarPrinting() { Vector tests = new Vector(calendarStrings.length); for (int i = 0; i < calendarStrings.length; i++) { tests.add( new CalendarToTSTZWithBindingTest( i + (calendarStrings.length + 1), calendarStrings[i], false)); } return tests; }
public void test() { // read data back from database literally in order to check contents of database rather than the // driver's TIMESTAMPTZ String sql = "select TEST_ID, to_char(TSTZ_DATA,'MM/DD/YYYY hh24:mi:ss TZR') as TSTZ_DATA FROM " + commonDescriptor().getTableName() + " where TEST_ID = " + getTestId(); Vector result = getSession().executeSQL(sql); if (result != null & !result.isEmpty()) { this.result = (DatabaseRecord) result.firstElement(); } }