We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parenta62c19e commit18b02b9Copy full SHA for 18b02b9
src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java
@@ -488,13 +488,13 @@ public Timestamp getTimestamp(int columnIndex) throws SQLException
488
489
SimpleDateFormatdf =null;
490
491
-if (sbuf.length()>23 &&subsecond) {
+if (s.length()>23 &&subsecond) {
492
df =newSimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSzzzzzzzzz");
493
- }elseif (sbuf.length()>23 && !subsecond) {
+ }elseif (s.length()>23 && !subsecond) {
494
df =newSimpleDateFormat("yyyy-MM-dd HH:mm:sszzzzzzzzz");
495
- }elseif (sbuf.length()>10 &&subsecond) {
+ }elseif (s.length()>10 &&subsecond) {
496
df =newSimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
497
- }elseif (sbuf.length()>10 && !subsecond) {
+ }elseif (s.length()>10 && !subsecond) {
498
df =newSimpleDateFormat("yyyy-MM-dd HH:mm:ss");
499
}else {
500
df =newSimpleDateFormat("yyyy-MM-dd");