[ 
https://issues.apache.org/jira/browse/HIVE-4256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13848487#comment-13848487
 ] 

Prasad Mujumdar commented on HIVE-4256:
---------------------------------------

Here's an example of one the test scenarios using MiniHS2
{code}
    Connection con1 =  DriverManager.getConnection(miniHS2.getJdbcURL(),
          System.getProperty("user.name"), "bar");
    String dbName="test_conn_str_default_db";
    Statement stmt = con1.createStatement();
    stmt.execute("create database  if not exists "+dbName);
    stmt.close();
    con1.close();
{code}


> JDBC2 HiveConnection does not use the specified database
> --------------------------------------------------------
>
>                 Key: HIVE-4256
>                 URL: https://issues.apache.org/jira/browse/HIVE-4256
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2, JDBC
>    Affects Versions: 0.11.0
>            Reporter: Chris Drome
>            Assignee: Anandha L Ranganathan
>         Attachments: HIVE-4256.1.patch, HIVE-4256.2.patch, HIVE-4256.3.patch, 
> HIVE-4256.4.patch, HIVE-4256.patch
>
>
> HiveConnection ignores the database specified in the connection string when 
> configuring the connection.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to