public void testTimestampFormat() { var dialect = new Oracle11Dialect(); var datetime = new DateTime(2009, 1, 23, 1, 23, 45, 123); dialect.ToLogFormat(datetime).Is("timestamp'2009-01-23 01:23:45.123'"); var datetimeoffset = new DateTimeOffset(2009, 1, 23, 1, 23, 45, 123, TimeSpan.Zero); dialect.ToLogFormat(datetimeoffset).Is("timestamp'2009-01-23 01:23:45.123'"); }
public void testTimeFormat() { var dialect = new Oracle11Dialect(); var time = new TimeSpan(1, 23, 45); dialect.ToLogFormat(time).Is("time'01:23:45'"); }