package org.drizzle.jdbc;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.DriverPropertyInfo;
import java.sql.DriverManager;
import java.util.Properties;

/**
 * User: marcuse
 * Date: Jan 14, 2009
 * Time: 7:46:09 AM
 */
public class Driver implements java.sql.Driver {
    public Driver() throws SQLException {
        DriverManager.registerDriver(new Driver());
    }

    public Connection connect(String url, Properties info) throws SQLException {
        throw new SQLException("Could not connect");
    }

    public boolean acceptsURL(String url) throws SQLException {
        return false;
    }

    public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException {
        return new DriverPropertyInfo[0];
    }

    public int getMajorVersion() {
        return 0;
    }

    public int getMinorVersion() {
        return 0;
    }

    public boolean jdbcCompliant() {
        return false;
    }
}

@@ -299,46 +299,35 @@
     
-public Driver() throws SQLException %7B%0A
+static %7B%0A        try %7B%0A    
     
@@ -374,16 +374,132 @@
 ver());%0A
+        %7D catch (SQLException e) %7B%0A            throw new RuntimeException(%22Could not register driver%22,e);%0A        %7D%0A
     %7D%0A%0A 

fix driver