Visitar URL original
fix: prevent batch insert loss during unique validation by 014-code · Pull Request #866 · APIJSON/APIJSON · GitHub
Skip to content
Merged
Changes from all commits
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
fix: isolate verifier SQL executor for validation #865
  • Loading branch information
014-code committed Jul 14, 2026
commit 1f41d457d1588988d7c0cb81d4e897393ba74a25
6 changes: 4 additions & 2 deletions APIJSONORM/src/main/java/apijson/orm/AbstractVerifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -1814,7 +1814,8 @@ public static <T, M extends Map<String, Object>, L extends List<Object>> void ve
config.setTable(table);
param.forEach((key,value) -> config.putWhere(key, value, false));

SQLExecutor<T, M, L> executor = parser.getSQLExecutor();
SQLExecutor<T, M, L> executor = parser.createSQLExecutor();
executor.setParser(parser);
try {
M result = executor.execute(config, false);
if (result == null) {
Expand Down Expand Up @@ -1902,7 +1903,8 @@ public static <T, M extends Map<String, Object>, L extends List<Object>> void ve
}
param.forEach((key,value) -> config.putWhere(key,value, false));

SQLExecutor<T, M, L> executor = parser.getSQLExecutor();
SQLExecutor<T, M, L> executor = parser.createSQLExecutor();
executor.setParser(parser);
try {
M result = executor.execute(config, false);
if (result == null) {
Expand Down