提交 9b040084 authored 作者: Roy-Breeze's avatar Roy-Breeze

Alter relative order of UUID vs JAVA_OBJECT in type conversion for comparison,

上级 7241998f
...@@ -314,9 +314,9 @@ public abstract class Value { ...@@ -314,9 +314,9 @@ public abstract class Value {
return 40; return 40;
case BLOB: case BLOB:
return 41; return 41;
case UUID:
return 42;
case JAVA_OBJECT: case JAVA_OBJECT:
return 42;
case UUID:
return 43; return 43;
case GEOMETRY: case GEOMETRY:
return 44; return 44;
......
...@@ -470,7 +470,7 @@ public class TestPreparedStatement extends TestBase { ...@@ -470,7 +470,7 @@ public class TestPreparedStatement extends TestBase {
prep.execute(); prep.execute();
prep = conn.prepareStatement("select * from test_uuid where id=?"); prep = conn.prepareStatement("select * from test_uuid where id=?");
prep.setObject(1, origUUID); prep.setObject(1, origUUID, java.sql.Types.JAVA_OBJECT);
ResultSet rs = prep.executeQuery(); ResultSet rs = prep.executeQuery();
rs.next(); rs.next();
Object o = rs.getObject(1); Object o = rs.getObject(1);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论