2015-09-26 146 views
1

我正在使用HSQLDB(启用MVCC支持)以及Hibernate。在日志文件中我得到一些警告:SQL警告代码:-1100,SQLState:02000

[WARN i.SqlExceptionHelper] SQL Warning Code: -1100, SQLState: 02000 
[WARN i.SqlExceptionHelper] no data 

是否有一个平均,以获得问题的基础上,警告代码和/或的SQLState的描述?

+0

你知道如何摆脱HSQLDB的警告而不增加hibernate的SqlExceptionHelper的日志级别吗? –

回答

1

EDIT1 请尝试以下链接HSQLDB:可供SQL警告代码的唯一信息:-1100,SQLSTATE:02000“无数据”

# SQL CODE definitions 
# no data 
1100=02000 no data 

ORIGINAL 请按照下面的链接,你可以看看描述对SQLSTATE

Table 3. Class Code 02: No Data 
SQLSTATE Value 
Meaning SQLCODE Values 
02000 One of the following exceptions occurred: 
The result of the SELECT INTO statement or the subselect of the INSERT statement was an empty table. 
The number of rows identified in the searched UPDATE or DELETE statement was zero. 
The position of the cursor referenced in the FETCH statement was after the last row of the result table. 
The fetch orientation is invalid. 
+100 
02001 No additional result sets returned. +387 
+1

HSQLDB不是DB2 –

+0

@a_horse_with_no_name:请找到更新后的答案,希望现在能帮上忙。 –

+0

DB2和HSQLDB都使用SQL标准状态代码。所以他们在这方面基本兼容。 – fredt