Skip to content

Commit

Permalink
Merge pull request #2 from AkramLZ/master
Browse files Browse the repository at this point in the history
String parsing fix in PreparedQuery's paremeters
  • Loading branch information
Cobeine authored Dec 23, 2023
2 parents af20d1a + 0c023c4 commit 7bcab56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group 'me.Cobeine'
version '1.5.2-SNAPSHOT'
version '1.5.3-SNAPSHOT'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public PreparedQuery setParameter(int index, Object value) {
if (statement == null)
return this;

statement.setObject(index, value);
if (value instanceof String) statement.setString(index, (String) value);
else statement.setObject(index, value);
} catch (Exception ignored) {
}
return this;
Expand Down

0 comments on commit 7bcab56

Please sign in to comment.