File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/interfaces/jdbc/org/postgresql/jdbc1 Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -488,13 +488,13 @@ public Timestamp getTimestamp(int columnIndex) throws SQLException
488
488
489
489
SimpleDateFormat df = null ;
490
490
491
- if (sbuf .length ()>23 && subsecond ) {
491
+ if (s .length ()>23 && subsecond ) {
492
492
df = new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss.SSSzzzzzzzzz" );
493
- } else if (sbuf .length ()>23 && !subsecond ) {
493
+ } else if (s .length ()>23 && !subsecond ) {
494
494
df = new SimpleDateFormat ("yyyy-MM-dd HH:mm:sszzzzzzzzz" );
495
- } else if (sbuf .length ()>10 && subsecond ) {
495
+ } else if (s .length ()>10 && subsecond ) {
496
496
df = new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss.SSS" );
497
- } else if (sbuf .length ()>10 && !subsecond ) {
497
+ } else if (s .length ()>10 && !subsecond ) {
498
498
df = new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss" );
499
499
} else {
500
500
df = new SimpleDateFormat ("yyyy-MM-dd" );
You can’t perform that action at this time.
0 commit comments