Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-2368

Call Driver.accept() in Driver.getConnection and return null if false

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.7.0
    • None

    Description

      The driver should return "null" if it realizes it is the wrong kind of driver to connect to the given URL.

      Your driver is throwing an exception instead of returning null.

      Here's the start of a test case:

      public static void main(String[] args) throws Exception {
          Class.forName(PhoenixDriver.class.getName());
          PhoenixDriver d = (PhoenixDriver) DriverManager.getDriver("jdbc:phoenix");
          d.close();
          DriverManager.getConnection("any text whatever you want to put here");
      }
      

      Attachments

        1. PHOENIX-2368.patch
          3 kB
          ramkrishna.s.vasudevan
        2. PHOENIX-2368.patch
          3 kB
          ramkrishna.s.vasudevan
        3. PHOENIX-2368_1.patch
          3 kB
          ramkrishna.s.vasudevan

        Activity

          People

            ram_krish ramkrishna.s.vasudevan
            jamestaylor James R. Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: