add comment

This commit is contained in:
Xavier Léauté 2014-10-31 17:04:19 -07:00
parent 47eb9c100e
commit 2269d09019
1 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,8 @@ public class MySQLConnector extends SQLMetadataConnector
// so we need to help JDBC find the driver // so we need to help JDBC find the driver
datasource.setDriverClassLoader(getClass().getClassLoader()); datasource.setDriverClassLoader(getClass().getClassLoader());
datasource.setDriverClassName("com.mysql.jdbc.Driver"); datasource.setDriverClassName("com.mysql.jdbc.Driver");
// use double-quotes for quoting columns, so we can write SQL that works with most databases
datasource.setConnectionInitSqls(ImmutableList.of("SET sql_mode='ANSI_QUOTES'")); datasource.setConnectionInitSqls(ImmutableList.of("SET sql_mode='ANSI_QUOTES'"));
this.dbi = new DBI(datasource); this.dbi = new DBI(datasource);