[
https://issues.apache.org/jira/browse/PHOENIX-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13931304#comment-13931304
]
ASF GitHub Bot commented on PHOENIX-831:
----------------------------------------
Github user yaise commented on a diff in the pull request:
https://github.com/apache/incubator-phoenix/pull/15#discussion_r10503565
--- Diff:
phoenix-core/src/test/java/org/apache/phoenix/jdbc/PhoenixDriverTest.java ---
@@ -0,0 +1,48 @@
+package org.apache.phoenix.jdbc;
+
+import org.apache.phoenix.util.PhoenixRuntime;
+import org.junit.*;
+
+import java.sql.Connection;
+import java.sql.Driver;
+import java.sql.DriverManager;
+import java.sql.SQLException;
+import java.util.Properties;
+
+import static org.junit.Assert.assertEquals;
+
+public class PhoenixDriverTest {
+
+ @Before
+ public void registerTestDriver() throws Exception {
+ DriverManager.registerDriver(new PhoenixTestDriver());
+ }
+
+ @After
+ public void deRegisterTestDriver() throws Exception {
+ DriverManager.deregisterDriver(new PhoenixTestDriver());
--- End diff --
this seems wrong. I'll figure out a way to get a handle to the driver that
I registered in @before method. sorry about that.
> First Connection to Phoenix blows up if it is tenant specific
> -------------------------------------------------------------
>
> Key: PHOENIX-831
> URL: https://issues.apache.org/jira/browse/PHOENIX-831
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 3.0.0
> Reporter: Somesh Sasalatti
>
> Driver driver = DriverManager.getDriver(url);
> Properties props = new Properties();
> final String tenantId = "00Dxx0000001234";
> props.put(PhoenixRuntime.TENANT_ID_ATTRIB, tenantId);
> Connection connection = driver.connect(url, props);
> BOOM!
> I have pull request coming shortly
--
This message was sent by Atlassian JIRA
(v6.2#6252)