Skip to content

Commit

Permalink
simplify empty ResultSet case in getGeneratedKeys()
Browse files Browse the repository at this point in the history
  • Loading branch information
sjlombardo committed Jan 17, 2024
1 parent 72605a1 commit c90bdba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/sqlite/core/CoreStatement.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public ResultSet getGeneratedKeys() throws SQLException {
if (generatedKeysRs == null) {
generatedKeysStat = conn.createStatement();
generatedKeysRs =
generatedKeysStat.executeQuery("SELECT last_insert_rowid() WHERE 0 <> 0;");
generatedKeysStat.executeQuery("SELECT 1 WHERE 1 = 2;");
}
return generatedKeysRs;
}
Expand Down

0 comments on commit c90bdba

Please sign in to comment.