From d2dd80c5dc53e18fe4be4c35559adc28ef8ab366 Mon Sep 17 00:00:00 2001 From: rwisser Date: Thu, 9 Feb 2017 05:51:21 +0000 Subject: [PATCH] use local DBMS configuration to convert local cell content instead of remote DBMS configuration git-svn-id: https://svn.code.sf.net/p/jailer/code/trunk@1152 3dd849cd-670e-4645-a7cd-dd197c8d0e81 --- .../net/sf/jailer/entitygraph/local/LocalEntityGraph.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/net/sf/jailer/entitygraph/local/LocalEntityGraph.java b/src/main/net/sf/jailer/entitygraph/local/LocalEntityGraph.java index b9c56d31e..af0f5efc1 100644 --- a/src/main/net/sf/jailer/entitygraph/local/LocalEntityGraph.java +++ b/src/main/net/sf/jailer/entitygraph/local/LocalEntityGraph.java @@ -121,14 +121,17 @@ public LocalInlineViewBuilder(String name, String columnList) { public LocalInlineViewBuilder(String name, String columnList, boolean allUPK) { super(localInlineViewStyle, name, localSession, columnList.split(", *")); this.allUPK = allUPK; + this.localDBMSConfiguration = Configuration.forDbms(localSession); } private final boolean allUPK; + private final Configuration localDBMSConfiguration; protected String sqlValue(ResultSet resultSet, int i) throws SQLException { String value = cellContentConverter.toSql(cellContentConverter.getObject(resultSet, i)); if (allUPK || isUPKColumn(columnNames[i - 1])) { - value = cellContentConverter.toSql(value); + // value = cellContentConverter.toSql(value); + value = "'" + localDBMSConfiguration.convertToStringLiteral(value) + "'"; } return value; }