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/02/20 13:13:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17040960#comment-17040960 ] 

Julian Reschke commented on OAK-8915:
-------------------------------------

trunk: [r1874249|http://svn.apache.org/r1874249]

> 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
>              Labels: candidate_oak_1_22
>             Fix For: 1.26.0
>
>
> 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)