Skip to content

Commit 182a761

Browse files
committed
Improve insert/update script
1 parent e70bfd7 commit 182a761

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>cz.foresttech</groupId>
88
<artifactId>ForestDatabase</artifactId>
9-
<version>1.0.3</version>
9+
<version>1.0.4</version>
1010

1111
<properties>
1212
<maven.compiler.source>17</maven.compiler.source>

src/main/java/cz/foresttech/database/DatabaseEntityConvertor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ private String processFieldValue(Object value, DatabaseValueProcessor processor)
314314
value = processor.getValue(value);
315315
}
316316

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

320320
/**

0 commit comments

Comments
 (0)