Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Winkler2008-12-01 13:35:29 +0000
committerStefan Winkler2008-12-01 13:35:29 +0000
commit02cc960c39a9b50c5c70f797eb3759b9148a5639 (patch)
tree7cbc9d3bc4a6b9c7a0a272c18a11a8b571985718 /plugins/org.eclipse.net4j.db
parentfd25da3564204637c89de2dd122c25a2514cde7c (diff)
downloadcdo-02cc960c39a9b50c5c70f797eb3759b9148a5639.tar.gz
cdo-02cc960c39a9b50c5c70f797eb3759b9148a5639.tar.xz
cdo-02cc960c39a9b50c5c70f797eb3759b9148a5639.zip
[244290] [DB] Trailing backslash is not escaped
https://bugs.eclipse.org/bugs/show_bug.cgi?id=244290
Diffstat (limited to 'plugins/org.eclipse.net4j.db')
-rw-r--r--plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBType.java19
1 files changed, 1 insertions, 18 deletions
diff --git a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBType.java b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBType.java
index 730dffc8b4..0c45c7ada6 100644
--- a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBType.java
+++ b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBType.java
@@ -115,24 +115,7 @@ public enum DBType
if (value instanceof String || value instanceof Character)
{
builder.append("'");
- if (value instanceof String)
- {
- String str = (String)value;
- for (int i = 0; i < str.length(); i++)
- {
- char c = str.charAt(i);
- builder.append(c);
- if (c == '\'')
- {
- builder.append(c);
- }
- }
- }
- else
- {
- builder.append(value);
- }
-
+ builder.append(value);
builder.append("'");
}
else

Back to the top