This commit is contained in:
shaojin.wensj
2022-04-10 14:12:13 +08:00
3 changed files with 4 additions and 4 deletions
@@ -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;
@@ -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);