You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Julian Reschke (Jira)" <ji...@apache.org> on 2020/07/30 08:03:00 UTC

[jira] [Updated] (OAK-8915) RDBDocumentStore: use setNString() for columns known to be of type N*CHAR

     [ https://issues.apache.org/jira/browse/OAK-8915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Reschke updated OAK-8915:
--------------------------------
    Fix Version/s:     (was: 0.1)

> RDBDocumentStore: use setNString() for columns known to be of type N*CHAR
> -------------------------------------------------------------------------
>
>                 Key: OAK-8915
>                 URL: https://issues.apache.org/jira/browse/OAK-8915
>             Project: Jackrabbit Oak
>          Issue Type: Technical task
>          Components: rdbmk
>            Reporter: Julian Reschke
>            Assignee: Julian Reschke
>            Priority: Minor
>             Fix For: 1.26.0, 1.8.21, 1.6.21, 1.22.2
>
>
> Microsoft's JDBC driver supports a connection property "sendStringParametersAsUnicode" (<https://docs.microsoft.com/en-us/sql/connect/jdbc/setting-the-connection-properties?view=sql-server-ver15>). When set to false, RDBDocumentStore would fail as the DATA column indeed requires Unicode.
> The fix is to detect the type of the DATA column (similar on how we special-case ID), and use setNString() for these cases.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)