mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
optimize Generator.java
This commit is contained in:
parent
edeff55aba
commit
bd1980fb7b
@ -33,7 +33,7 @@ public class Generator {
|
||||
|
||||
protected DataSource dataSource;
|
||||
protected GlobalConfig globalConfig;
|
||||
protected IDialect dialect = IDialect.MYSQL;
|
||||
protected IDialect dialect = IDialect.DEFAULT;
|
||||
|
||||
protected Connection conn = null;
|
||||
protected DatabaseMetaData dbMeta = null;
|
||||
|
||||
@ -25,10 +25,10 @@ import java.sql.SQLException;
|
||||
|
||||
public interface IDialect {
|
||||
|
||||
IDialect MYSQL = new JdbcDialect() {
|
||||
IDialect DEFAULT = new JdbcDialect() {
|
||||
@Override
|
||||
String forBuildColumnsSql(String tableName) {
|
||||
return "SELECT * FROM `" + tableName + "` WHERE 1 = 2";
|
||||
return "SELECT * FROM " + tableName + " WHERE 1 = 2";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user