提交 1728b275 编写于 作者: G guangyun1013

Modify temp table name

上级 8a14b57a
......@@ -116,7 +116,7 @@ public abstract class AbstractShardingTableOnlyTest extends AbstractSQLAssertTes
}
if (getSql().startsWith("CREATE") || getSql().startsWith("ALTER") || getSql().startsWith("TRUNCATE")) {
if (getSql().contains("TEMP")) {
executeSql("DROP TEMPORARY TABLE t_temp_log");
executeSql("DROP TABLE t_temp_log");
} else {
executeSql("DROP TABLE t_log");
}
......
......@@ -3,7 +3,7 @@
<sql id="assertCreateTable" value="CREATE TABLE t_log(id int, status varchar(10))" />
<sql id="assertCreateTableIfNotExist" value="CREATE TABLE IF NOT EXISTS t_log(id int, status varchar(10))" type="MySQL,PostgreSQL" />
<sql id="assertCreateTemporaryTable" value="CREATE TEMPORARY TABLE IF NOT EXISTS t_temp_log(id int, status varchar(10))" type="MySQL,PostgreSQL" />
<sql id="assertCreateGlobalTemporaryTable" value="CREATE GLOBAL TEMPORARY TABLE t_log(id int, status varchar(10))" type="Oracle,PostgreSQL" />
<sql id="assertCreateLocalTempTable" value="CREATE LOCAL TEMP TABLE t_log(id int, status varchar(10))" type="PostgreSQL" />
<sql id="assertCreateGlobalTemporaryTable" value="CREATE GLOBAL TEMPORARY TABLE t_temp_log(id int, status varchar(10))" type="Oracle,PostgreSQL" />
<sql id="assertCreateLocalTempTable" value="CREATE LOCAL TEMP TABLE t_temp_log(id int, status varchar(10))" type="PostgreSQL" />
<sql id="assertCreateUnloggedTable" value="CREATE UNLOGGED TABLE t_log(id int, status varchar(10))" type="PostgreSQL" />
</sqls>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册