change
This commit is contained in:
parent
179a4f5588
commit
83ba94b6ed
|
@ -98,7 +98,7 @@ public class RestfulResultSet extends AbstractResultSet implements ResultSet {
|
||||||
case Types.DOUBLE:
|
case Types.DOUBLE:
|
||||||
return row.getDouble(colIndex);
|
return row.getDouble(colIndex);
|
||||||
case Types.TIMESTAMP:
|
case Types.TIMESTAMP:
|
||||||
return row.getTimestamp(colIndex);
|
return new Timestamp(row.getDate(colIndex).getTime());
|
||||||
case Types.BINARY:
|
case Types.BINARY:
|
||||||
case Types.NCHAR:
|
case Types.NCHAR:
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -9,8 +9,8 @@ import java.util.Random;
|
||||||
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
|
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
|
||||||
public class RestfulJDBCTest {
|
public class RestfulJDBCTest {
|
||||||
|
|
||||||
private static final String host = "127.0.0.1";
|
// private static final String host = "127.0.0.1";
|
||||||
// private static final String host = "master";
|
private static final String host = "master";
|
||||||
private static Connection connection;
|
private static Connection connection;
|
||||||
private Random random = new Random(System.currentTimeMillis());
|
private Random random = new Random(System.currentTimeMillis());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue