Skip to content

Commit

Permalink
prevent adding prefix for nvarchar literal twice
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/jailer/code/trunk@1114 3dd849cd-670e-4645-a7cd-dd197c8d0e81
  • Loading branch information
rwisser committed Dec 2, 2016
1 parent f85cd59 commit 1808b8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions releasenotes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- Added possibility to specify the target DBMS for a generated SQL script.
This allows to export data and import it into a different DBMS.
- Support for virtual columns.
- Fixed a bug concerning NVARCHAR literals on MS SQL Server.

6.1.3
- fixed an incompatibility with PostgreSQL JDBC Driver 9.1.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected String sqlValue(ResultSet resultSet, int i) throws SQLException {
value = cellContentConverter.toSql(value);
} else if (value instanceof String && isNUPKColumn(columnNames[i - 1])) {
String prefix = Configuration.forDbms(remoteSession).getNcharPrefix();
if (prefix != null) {
if (prefix != null && value != null && !value.toString().startsWith(prefix)) {
value = prefix + value;
}
}
Expand Down

0 comments on commit 1808b8e

Please # to comment.