提交 83ba94b6 编写于 作者: Z zyyang

change

上级 179a4f55
...@@ -98,7 +98,7 @@ public class RestfulResultSet extends AbstractResultSet implements ResultSet { ...@@ -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; ...@@ -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());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册