[ https://issues.apache.org/jira/browse/HIVE-20607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16624564#comment-16624564 ]
ASF GitHub Bot commented on HIVE-20607: --------------------------------------- GitHub user sankarh opened a pull request: https://github.com/apache/hive/pull/434 HIVE-20607: TxnHandler should use PreparedStatement to execute direct SQL queries. You can merge this pull request into a Git repository by running: $ git pull https://github.com/sankarh/hive HIVE-20607 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/hive/pull/434.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #434 ---- commit 05a6daa841579d2835affef0144af4ba6c0ac1bb Author: Sankar Hariappan <mailtosankarh@...> Date: 2018-09-22T09:29:37Z HIVE-20607: TxnHandler should use PreparedStatement to execute direct SQL queries. ---- > TxnHandler should use PreparedStatement to execute direct SQL queries. > ---------------------------------------------------------------------- > > Key: HIVE-20607 > URL: https://issues.apache.org/jira/browse/HIVE-20607 > Project: Hive > Issue Type: Bug > Components: Standalone Metastore, Transactions > Affects Versions: 4.0.0 > Reporter: Sankar Hariappan > Assignee: Sankar Hariappan > Priority: Major > Labels: ACID, pull-request-available > Fix For: 4.0.0 > > Attachments: HIVE-20607.01.patch > > > TxnHandler uses direct SQL queries to operate on Txn related databases/tables > in Hive metastore RDBMS. > Most of the methods are direct calls from Metastore api which should be > directly append input string arguments to the SQL string. > Need to use parameterised PreparedStatement object to set these arguments. -- This message was sent by Atlassian JIRA (v7.6.3#76005)