Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
31cd70c4
提交
31cd70c4
authored
17 年前
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
7f6be99b
master
noel-pr1
plus33-master
pr/267
stumc-Issue#576
version-1.1.x
version-1.4.198
version-1.4.197
version-1.4.196
version-1.4.195
version-1.4.194
version-1.4.193
version-1.4.192
version-1.4.191
version-1.4.190
version-1.4.188
version-1.4.187
version-1.4.186
version-1.4.185
version-1.4.184
version-1.4.183
version-1.4.182
version-1.4.181
version-1.4.178
version-1.4.177
version-1.3
version-1.2
version-1.1
version-1.0
无相关合并请求
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
127 行增加
和
2 行删除
+127
-2
ErrorCode.java
h2/src/main/org/h2/constant/ErrorCode.java
+127
-2
没有找到文件。
h2/src/main/org/h2/constant/ErrorCode.java
浏览文件 @
31cd70c4
...
@@ -1552,13 +1552,61 @@ public class ErrorCode {
...
@@ -1552,13 +1552,61 @@ public class ErrorCode {
*/
*/
public
static
final
int
CANNOT_DROP_TABLE_1
=
90118
;
public
static
final
int
CANNOT_DROP_TABLE_1
=
90118
;
private
int
todo14
;
/**
* The error with code <code>90119</code> is thrown when
* trying to create a domain if an object with this name already exists.
* Example:
* <pre>
* CREATE DOMAIN EMAIL AS VARCHAR CHECK LOCATE('@', VALUE) > 0;
* CREATE DOMAIN EMAIL AS VARCHAR CHECK LOCATE('@', VALUE) > 0;
* </pre>
*/
public
static
final
int
USER_DATA_TYPE_ALREADY_EXISTS_1
=
90119
;
public
static
final
int
USER_DATA_TYPE_ALREADY_EXISTS_1
=
90119
;
/**
* The error with code <code>90120</code> is thrown when
* trying to drop a domain that doesn't exists.
* Example:
* <pre>
* DROP DOMAIN UNKNOWN;
* </pre>
*/
public
static
final
int
USER_DATA_TYPE_NOT_FOUND_1
=
90120
;
public
static
final
int
USER_DATA_TYPE_NOT_FOUND_1
=
90120
;
/**
* The error with code <code>90121</code> is thrown when
* a database operation is started while the virtual machine exits
* (for example in a shutdown hook), or when the session is closed.
*/
public
static
final
int
DATABASE_CALLED_AT_SHUTDOWN
=
90121
;
public
static
final
int
DATABASE_CALLED_AT_SHUTDOWN
=
90121
;
/**
* The error with code <code>90122</code> is thrown when
* trying to altering, adding or dropping columns of a table that has views.
* Example:
* <pre>
* CREATE TABLE TEST(ID INT);
* CREATE VIEW TEST_VIEW AS SELECT * FROM TEST;
* ALTER TABLE TEST ADD COLUMN NAME VARCHAR;
* </pre>
*/
public
static
final
int
OPERATION_NOT_SUPPORTED_WITH_VIEWS_2
=
90122
;
public
static
final
int
OPERATION_NOT_SUPPORTED_WITH_VIEWS_2
=
90122
;
/**
* The error with code <code>90123</code> is thrown when
* trying mix regular parameters and indexed parameters in the same statement.
* Example:
* <pre>
* SELECT ?, ?1 FROM DUAL;
* </pre>
*/
public
static
final
int
CANNOT_MIX_INDEXED_AND_UNINDEXED_PARAMS
=
90123
;
public
static
final
int
CANNOT_MIX_INDEXED_AND_UNINDEXED_PARAMS
=
90123
;
/**
* The error with code <code>90124</code> is thrown when
* trying to access a file that doesn't exist. This can occur when trying to
* read a lob if the lob file has been deleted by another application.
*/
public
static
final
int
FILE_NOT_FOUND_1
=
90124
;
public
static
final
int
FILE_NOT_FOUND_1
=
90124
;
/**
/**
...
@@ -1579,9 +1627,45 @@ public class ErrorCode {
...
@@ -1579,9 +1627,45 @@ public class ErrorCode {
* </pre>
* </pre>
*/
*/
public
static
final
int
INVALID_CLASS_2
=
90125
;
public
static
final
int
INVALID_CLASS_2
=
90125
;
/**
* The error with code <code>90126</code> is thrown when
* trying to call the BACKUP statement for an in-memory database.
* Example:
* <pre>
* jdbc:h2:mem:
* BACKUP TO 'test.zip';
* </pre>
*/
public
static
final
int
DATABASE_IS_NOT_PERSISTENT
=
90126
;
public
static
final
int
DATABASE_IS_NOT_PERSISTENT
=
90126
;
/**
* The error with code <code>90127</code> is thrown when
* trying to update or delete a row in a result set if the result set is
* not updatable.
*/
public
static
final
int
RESULT_SET_NOT_UPDATABLE
=
90127
;
public
static
final
int
RESULT_SET_NOT_UPDATABLE
=
90127
;
/**
* The error with code <code>90128</code> is thrown when
* trying to call a method of the ResultSet that is only supported
* for scrollable result sets, and the result set is not scrollable.
* Example:
* <pre>
* rs.first();
* </pre>
*/
public
static
final
int
RESULT_SET_NOT_SCROLLABLE
=
90128
;
public
static
final
int
RESULT_SET_NOT_SCROLLABLE
=
90128
;
/**
* The error with code <code>90129</code> is thrown when
* trying to commit a transaction that doesn't exist.
* Example:
* <pre>
* PREPARE COMMIT ABC;
* COMMIT TRANSACTION TEST;
* </pre>
*/
public
static
final
int
TRANSACTION_NOT_FOUND_1
=
90129
;
public
static
final
int
TRANSACTION_NOT_FOUND_1
=
90129
;
/**
/**
...
@@ -1600,9 +1684,50 @@ public class ErrorCode {
...
@@ -1600,9 +1684,50 @@ public class ErrorCode {
* </pre>
* </pre>
*/
*/
public
static
final
int
METHOD_NOT_ALLOWED_FOR_PREPARED_STATEMENT
=
90130
;
public
static
final
int
METHOD_NOT_ALLOWED_FOR_PREPARED_STATEMENT
=
90130
;
/**
* The error with code <code>90131</code> is thrown when
* using multi version concurrency control, and trying to update the same
* row from within two connections at the same time.
* Example:
* <pre>
* jdbc:h2:~/test;MVCC=TRUE
* Session 1:
* CREATE TABLE TEST(ID INT);
* INSERT INTO TEST VALUES(1);
* SET AUTOCOMMIT FALSE;
* UPDATE TEST SET ID = 2;
* Session 2:
* SET AUTOCOMMIT FALSE;
* UPDATE TEST SET ID = 3;
* </pre>
*/
public
static
final
int
CONCURRENT_UPDATE_1
=
90131
;
public
static
final
int
CONCURRENT_UPDATE_1
=
90131
;
/**
* The error with code <code>90132</code> is thrown when
* trying to drop a user defined aggregate function that doesn't exist.
* Example:
* <pre>
* DROP AGGREGATE UNKNOWN;
* </pre>
*/
public
static
final
int
AGGREGATE_NOT_FOUND_1
=
90132
;
public
static
final
int
AGGREGATE_NOT_FOUND_1
=
90132
;
/**
* The error with code <code>90133</code> is thrown when
* trying to change a specific database property while the database is already
* open. The MVCC property needs to be set in the first connection
* (in the connection opening the database) and can not be changed later on.
*/
public
static
final
int
CANNOT_CHANGE_SETTING_WHEN_OPEN_1
=
90133
;
public
static
final
int
CANNOT_CHANGE_SETTING_WHEN_OPEN_1
=
90133
;
/**
* The error with code <code>90134</code> is thrown when
* trying to load a Java class that is not part of the allowed classes.
* By default, all classes are allowed, but this can be changed using the system
* property h2.allowedClasses.
*/
public
static
final
int
ACCESS_DENIED_TO_CLASS_1
=
90134
;
public
static
final
int
ACCESS_DENIED_TO_CLASS_1
=
90134
;
/**
/**
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论