File tree 1 file changed +4
-4
lines changed
src/interfaces/jdbc/org/postgresql/jdbc2
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -499,13 +499,13 @@ public Timestamp getTimestamp(int columnIndex) throws SQLException
499
499
// could optimize this a tad to remove too many object creations...
500
500
SimpleDateFormat df = null ;
501
501
502
- if (s .length ()>23 && subsecond ) {
502
+ if (sbuf .length ()>23 && subsecond ) {
503
503
df = new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss.SSSzzzzzzzzz" );
504
- } else if (s .length ()>23 && !subsecond ) {
504
+ } else if (sbuf .length ()>23 && !subsecond ) {
505
505
df = new SimpleDateFormat ("yyyy-MM-dd HH:mm:sszzzzzzzzz" );
506
- } else if (s .length ()>10 && subsecond ) {
506
+ } else if (sbuf .length ()>10 && subsecond ) {
507
507
df = new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss.SSS" );
508
- } else if (s .length ()>10 && !subsecond ) {
508
+ } else if (sbuf .length ()>10 && !subsecond ) {
509
509
df = new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss" );
510
510
} else {
511
511
df = new SimpleDateFormat ("yyyy-MM-dd" );
You can’t perform that action at this time.
0 commit comments