We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f96e52 commit c741a41Copy full SHA for c741a41
1 file changed
core/src/main/java/me/zort/sqllib/internal/query/QueryDetails.java
@@ -101,7 +101,8 @@ public void accept(int value) {
101
}
102
103
private static void set(PreparedStatement statement, int index, Object value) throws SQLException {
104
- switch(value.getClass().getSimpleName().toLowerCase()) {
+ String type = value != null ? value.getClass().getSimpleName().toLowerCase() : "null";
105
+ switch(type) {
106
case "string":
107
statement.setString(index, (String) value);
108
break;
0 commit comments