提交 2339db2a authored 作者: Thomas Mueller's avatar Thomas Mueller

Throw an explicit error to make it clear we don't support the TRIGGER…

Throw an explicit error to make it clear we don't support the TRIGGER combination of SELECT and FOR EACH ROW.
上级 82a06408
...@@ -445,6 +445,13 @@ public class ErrorCode { ...@@ -445,6 +445,13 @@ public class ErrorCode {
*/ */
public static final int HEX_STRING_WRONG_1 = 90004; public static final int HEX_STRING_WRONG_1 = 90004;
/**
* The error with code <code>90005</code> is thrown when
* trying to create a trigger and using the combination of SELECT and FOR EACH ROW,
* which we do not support.
*/
public static final int TRIGGER_SELECT_AND_ROW_BASED_NOT_SUPPORTED = 90005;
/** /**
* The error with code <code>90007</code> is thrown when * The error with code <code>90007</code> is thrown when
* trying to call a JDBC method on an object that has been closed. * trying to call a JDBC method on an object that has been closed.
...@@ -1849,13 +1856,6 @@ public class ErrorCode { ...@@ -1849,13 +1856,6 @@ public class ErrorCode {
*/ */
public static final int RESULT_SET_READONLY = 90140; public static final int RESULT_SET_READONLY = 90140;
/**
* The error with code <code>90005</code> is thrown when
* trying to create a trigger and using the combination of SELECT and FOR EACH ROW,
* which we do not support.
*/
public static final int TRIGGER_SELECT_AND_ROW_BASED_NOT_SUPPORTED = 90005;
// next are 90006, 90009, 90010, 90011, 90021, 90039, // next are 90006, 90009, 90010, 90011, 90021, 90039,
// 90051, 90056, 90110, 90122, 90141 // 90051, 90056, 90110, 90122, 90141
......
...@@ -77,7 +77,6 @@ public class Session extends SessionWithState { ...@@ -77,7 +77,6 @@ public class Session extends SessionWithState {
private int throttle; private int throttle;
private long lastThrottle; private long lastThrottle;
private Command currentCommand; private Command currentCommand;
/** A temporary override we use during database startup */
private boolean allowLiterals; private boolean allowLiterals;
private String currentSchemaName; private String currentSchemaName;
private String[] schemaSearchPath; private String[] schemaSearchPath;
...@@ -910,9 +909,6 @@ public class Session extends SessionWithState { ...@@ -910,9 +909,6 @@ public class Session extends SessionWithState {
return currentCommandStart; return currentCommandStart;
} }
/**
* A temporary override we use during database startup
*/
public boolean getAllowLiterals() { public boolean getAllowLiterals() {
return allowLiterals; return allowLiterals;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论