Skip to content

Commit 5581312

Browse files
committed
add missing cast methods
1 parent 23727bd commit 5581312

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

core/src/main/java/lucee/runtime/type/dt/TimestampImpl.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
import java.util.TimeZone;
2323

2424
/**
25-
* DateTimeImpl for a value read from a JDBC DATE/TIME/TIMESTAMP column, preserving the driver's
26-
* own toString() representation instead of Lucee's {ts '...'} ODBC escape format - see LDEV-1344
25+
* DateTimeImpl for a value read from a JDBC DATE/TIME/TIMESTAMP column, preserving the driver's own
26+
* toString() representation instead of Lucee's {ts '...'} ODBC escape format - see LDEV-1344
2727
*/
2828
public final class TimestampImpl extends DateTimeImpl {
2929

@@ -40,4 +40,14 @@ public TimestampImpl(Date date, String jdbcToString) {
4040
public String castToString(TimeZone tz) {
4141
return jdbcToString;
4242
}
43+
44+
@Override
45+
public String castToString() {
46+
return jdbcToString;
47+
}
48+
49+
@Override
50+
public String castToString(String defaultValue) {
51+
return jdbcToString;
52+
}
4353
}

0 commit comments

Comments
 (0)