Skip to content

Commit 591b2f5

Browse files
committed
perhaps fix crash
1 parent 87c2dd6 commit 591b2f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/me/mrnavastar/sqlib/impl/SQLConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void deleteRow(DataStore store, int id) {
6464

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

0 commit comments

Comments
 (0)