提交 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
......@@ -444,6 +444,13 @@ public class ErrorCode {
* represent the hexadecimal encoded bytes.
*/
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
......@@ -797,7 +804,7 @@ public class ErrorCode {
* See the root cause for details.
*/
public static final int ERROR_EXECUTING_TRIGGER_3 = 90044;
/**
* The error with code <code>90045</code> is thrown when
* trying to create a constraint if an object with this name already exists.
......@@ -1849,13 +1856,6 @@ public class ErrorCode {
*/
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,
// 90051, 90056, 90110, 90122, 90141
......
......@@ -77,7 +77,6 @@ public class Session extends SessionWithState {
private int throttle;
private long lastThrottle;
private Command currentCommand;
/** A temporary override we use during database startup */
private boolean allowLiterals;
private String currentSchemaName;
private String[] schemaSearchPath;
......@@ -910,9 +909,6 @@ public class Session extends SessionWithState {
return currentCommandStart;
}
/**
* A temporary override we use during database startup
*/
public boolean getAllowLiterals() {
return allowLiterals;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论