提交 71b1085f authored 作者: Thomas Mueller's avatar Thomas Mueller

Oracle compatibility: support for DECODE(...).

上级 4c818d40
...@@ -50,8 +50,8 @@ public class TestRunscript extends TestBase implements Trigger { ...@@ -50,8 +50,8 @@ public class TestRunscript extends TestBase implements Trigger {
Connection conn; Connection conn;
conn = getConnection("runscript"); conn = getConnection("runscript");
Statement stat = conn.createStatement(); Statement stat = conn.createStatement();
stat.execute("create alias decode for \"java.lang.Integer.decode\""); stat.execute("create alias int_decode for \"java.lang.Integer.decode\"");
stat.execute("create table test(x varchar, y int as decode(x))"); stat.execute("create table test(x varchar, y int as int_decode(x))");
stat.execute("script simple drop to '" + getBaseDir() + "/backup.sql'"); stat.execute("script simple drop to '" + getBaseDir() + "/backup.sql'");
stat.execute("runscript from '" + getBaseDir() + "/backup.sql'"); stat.execute("runscript from '" + getBaseDir() + "/backup.sql'");
conn.close(); conn.close();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论