Skip to content

Commit

Permalink
Improve insert/update script
Browse files Browse the repository at this point in the history
  • Loading branch information
apik007 committed Mar 26, 2024
1 parent e70bfd7 commit 182a761
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>cz.foresttech</groupId>
<artifactId>ForestDatabase</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ private String processFieldValue(Object value, DatabaseValueProcessor processor)
value = processor.getValue(value);
}

return (value instanceof String) ? "'" + escapeString((String) value) + "'" : value.toString();
return "'" + ((value instanceof String) ? escapeString((String) value) : value.toString()) + "'";
}

/**
Expand Down

0 comments on commit 182a761

Please sign in to comment.