Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: 添加异常信息控制静态变量,改造两层错误码问题
    - AbstractParser类增加了isPrintErrorLog静态变量,暴露给用户控制错误信息抛出
    - 内外两层错误码改造,增加抛出异常逻辑(updateCount <= 0)
  • Loading branch information
iceewei
iceewei committed Apr 6, 2021
commit 873afa8470d189648e5e5dc30fc0827da01746c5
2 changes: 1 addition & 1 deletion APIJSONORM/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>apijson.orm</groupId>
<artifactId>apijson-orm</artifactId>
<version>4.6.6</version>
<version>4.6.7</version>
<packaging>jar</packaging>

<name>APIJSONORM</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public JSONObject execute(@NotNull SQLConfig config, boolean unknowType) throws
throw new NotExistException("没权限访问或对象不存在!");
}

// 更新成功后收集结果。例如更新操作成功时,返回count(affected rows)、id字段
// updateCount>0时收集结果。例如更新操作成功时,返回count(affected rows)、id字段
result = new JSONObject(true);

//id,id{}至少一个会有,一定会返回,不用抛异常来阻止关联写操作时前面错误导致后面无条件执行!
Expand Down