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

change

上级 179a4f55
......@@ -98,7 +98,7 @@ public class RestfulResultSet extends AbstractResultSet implements ResultSet {
case Types.DOUBLE:
return row.getDouble(colIndex);
case Types.TIMESTAMP:
return row.getTimestamp(colIndex);
return new Timestamp(row.getDate(colIndex).getTime());
case Types.BINARY:
case Types.NCHAR:
default:
......
......@@ -9,8 +9,8 @@ import java.util.Random;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class RestfulJDBCTest {
private static final String host = "127.0.0.1";
// private static final String host = "master";
// private static final String host = "127.0.0.1";
private static final String host = "master";
private static Connection connection;
private Random random = new Random(System.currentTimeMillis());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册