Skip to content

Commit

Permalink
perhaps fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNavaStar committed Jul 21, 2024
1 parent 87c2dd6 commit 591b2f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/me/mrnavastar/sqlib/impl/SQLConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void deleteRow(DataStore store, int id) {

public boolean rowExists(DataStore store, int id) {
try (Handle h = sql.open()) {
return h.select("SELECT 1 FROM %s WHERE SQLIB_AUTO_ID = ?".formatted(store.toString()), id).mapTo(Object.class).one() != null;
return h.select("SELECT 1 FROM %s WHERE SQLIB_AUTO_ID = ?".formatted(store.toString()), id).mapTo(Integer.class).one() != null;
}
}

Expand Down

0 comments on commit 591b2f5

Please sign in to comment.