You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Peter Vary (Jira)" <ji...@apache.org> on 2020/02/05 12:36:00 UTC

[jira] [Updated] (HIVE-22804) Ensure ANSI quotes are used for mysql connections

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

Peter Vary updated HIVE-22804:
------------------------------
    Fix Version/s: 4.0.0
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

Pushed to master.
Thanks for the patch [~zchovan]!
Please create a follow-up jira to remove old hacks for ANSI quote settings.

Thanks,
Peter

> Ensure ANSI quotes are used for mysql connections
> -------------------------------------------------
>
>                 Key: HIVE-22804
>                 URL: https://issues.apache.org/jira/browse/HIVE-22804
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Zoltan Chovan
>            Assignee: Zoltan Chovan
>            Priority: Major
>             Fix For: 4.0.0
>
>         Attachments: HIVE-22804.patch
>
>
> Recent changes in direct sql queries to resolve postgres issues(e.g. TxnHandler in HIVE-22663 ) break compatibility with mysql backend db. 
> A workaround for these issues is to add a session config to the mysql connection string, e.g.:
> {code:java}
> jdbc:mysql://localhost:3306/db?sessionVariables=sql_mode=ANSI_QUOTES
> {code}
>  



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