提交 508f61cf authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Restore currentPrepared in parseSelectSimple()

上级 33c9d6cd
...@@ -21,6 +21,10 @@ Change Log ...@@ -21,6 +21,10 @@ Change Log
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul> <ul>
<li>Issue #1573: DELETE FROM w/ ROWNUM and subquery
</li>
<li>PR #1571: Optimizing ConditionAndOr queries
</li>
<li>Issue #1565: SOME / ANY conflict <li>Issue #1565: SOME / ANY conflict
</li> </li>
<li>PR #1564: Refactor Expression implementations <li>PR #1564: Refactor Expression implementations
......
...@@ -2620,6 +2620,7 @@ public class Parser { ...@@ -2620,6 +2620,7 @@ public class Parser {
Select command = new Select(session); Select command = new Select(session);
int start = lastParseIndex; int start = lastParseIndex;
Select oldSelect = currentSelect; Select oldSelect = currentSelect;
Prepared oldPrepared = currentPrepared;
currentSelect = command; currentSelect = command;
currentPrepared = command; currentPrepared = command;
if (fromFirst) { if (fromFirst) {
...@@ -2676,6 +2677,7 @@ public class Parser { ...@@ -2676,6 +2677,7 @@ public class Parser {
} }
command.setParameterList(parameters); command.setParameterList(parameters);
currentSelect = oldSelect; currentSelect = oldSelect;
currentPrepared = oldPrepared;
setSQL(command, "SELECT", start); setSQL(command, "SELECT", start);
return command; return command;
} }
......
...@@ -154,7 +154,7 @@ public class TestScript extends TestDb { ...@@ -154,7 +154,7 @@ public class TestScript extends TestDb {
"dropDomain", "dropIndex", "dropSchema", "truncateTable" }) { "dropDomain", "dropIndex", "dropSchema", "truncateTable" }) {
testScript("ddl/" + s + ".sql"); testScript("ddl/" + s + ".sql");
} }
for (String s : new String[] { "error_reporting", "insertIgnore", "merge", "mergeUsing", "replace", for (String s : new String[] { "delete", "error_reporting", "insertIgnore", "merge", "mergeUsing", "replace",
"script", "select", "show", "with" }) { "script", "select", "show", "with" }) {
testScript("dml/" + s + ".sql"); testScript("dml/" + s + ".sql");
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论