【问题标题】:SQL Warning Code: -1100, SQLState: 02000SQL 警告代码:-1100,SQLState:02000
【发布时间】:2015-12-24 00:57:28
【问题描述】:

我正在使用 HSQLDB(启用了 MVCC 支持)和 Hibernate。在日志文件中,我收到了一些警告:

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

有没有办法根据 警告代码 和/或 SQLState 来获得对问题的描述?

【问题讨论】:

  • 你知道如何在不增加 hibernate 的 SqlExceptionHelper 的日志级别的情况下摆脱 HSQLDB 的警告吗?

标签: sql hibernate hsqldb


【解决方案1】:

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

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

原创 请点击以下链接,您将能够根据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

【讨论】:

  • @a_horse_with_no_name:请找到更新后的答案,希望对您有所帮助。
  • DB2 和 HSQLDB 都使用 SQL 标准状态代码。所以它们在这方面基本上是兼容的。
猜你喜欢
  • 1970-01-01
  • 2015-03-31
  • 2016-04-12
  • 1970-01-01
  • 2018-08-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多