mirror of https://github.com/apache/druid.git
add comment
This commit is contained in:
parent
47eb9c100e
commit
2269d09019
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue