~maria-captains/mariadb-java-client/trunk

« back to all changes in this revision

Viewing changes to src/main/java/org/mariadb/jdbc/Driver.java

  • Committer: Vladislav Vaintroub
  • Date: 2013-02-18 14:20:40 UTC
  • Revision ID: wlad@montyprogram.com-20130218142040-5fxdqk654g1bhhx1
Small refactoring : remove yet another unnecessary level of abstraction - MySQLQueryFactory. Use MySQLQuery directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
 
52
52
import org.mariadb.jdbc.internal.SQLExceptionMapper;
53
53
import org.mariadb.jdbc.internal.common.QueryException;
54
 
import org.mariadb.jdbc.internal.common.query.MySQLQueryFactory;
55
54
import org.mariadb.jdbc.internal.mysql.MySQLProtocol;
56
55
 
57
56
import java.sql.Connection;
110
109
 
111
110
            MySQLProtocol protocol = new MySQLProtocol(jdbcUrl, userName,  password,  info);
112
111
 
113
 
            return MySQLConnection.newConnection(protocol, new MySQLQueryFactory());
 
112
            return MySQLConnection.newConnection(protocol);
114
113
        } catch (QueryException e) {
115
114
            SQLExceptionMapper.throwException(e, null, null);
116
115
            return null;