mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
Merge branch 'master' of https://github.com/alibaba/druid
This commit is contained in:
@@ -199,7 +199,7 @@ public class SQLIntegerExpr extends SQLNumericLiteralExpr implements SQLValuable
|
||||
}
|
||||
|
||||
if (this.number instanceof Double && o.number instanceof Double) {
|
||||
return ((Float) this.number).compareTo((Float) o.number);
|
||||
return ((Double) this.number).compareTo((Double) o.number);
|
||||
}
|
||||
|
||||
return -1;
|
||||
|
||||
+1
-1
@@ -70,7 +70,7 @@ public class MySqlCreateTableSpaceStatement extends MySqlStatementImpl implement
|
||||
if (x != null) {
|
||||
x.setParent(this);
|
||||
}
|
||||
this.addDataFile = addDataFile;
|
||||
this.addDataFile = x;
|
||||
}
|
||||
|
||||
public SQLExpr getInitialSize() {
|
||||
|
||||
@@ -17,7 +17,7 @@ package com.alibaba.druid.bvt.utils;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.sql.SQLRecoverableException;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -54,7 +54,7 @@ public class JdbcUtilsTest extends TestCase {
|
||||
Assert.assertEquals(0, list.size());
|
||||
}
|
||||
{
|
||||
Map<String, Object> data = new HashMap<String, Object>();
|
||||
Map<String, Object> data = new LinkedHashMap<String, Object>();
|
||||
data.put("id", 123);
|
||||
data.put("name", "高傲的羊");
|
||||
JdbcUtils.insertToTable(dataSource, "user", data);
|
||||
|
||||
Reference in New Issue
Block a user