!84 Code update

* MySQL的limit
* update readme
* set timezone for image
* 没配置表时过滤视图表
* version for 1.6.5
This commit is contained in:
inrgihc
2022-03-06 04:19:58 +00:00
parent 58b7639924
commit cae9c4ed87
3 changed files with 4 additions and 6 deletions

View File

@@ -6,6 +6,9 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ADD dbswitch-release.tar.gz /
EXPOSE 9088

View File

@@ -29,9 +29,4 @@ public class DatabaseMariaDBImpl extends DatabaseMysqlImpl {
return DatabaseTypeEnum.MARIADB;
}
@Override
public List<ColumnDescription> querySelectSqlColumnMeta(String sql) {
String querySQL = String.format(" %s LIMIT 0 ", sql.replace(";", ""));
return this.getSelectSqlColumnMeta(querySQL);
}
}

View File

@@ -139,7 +139,7 @@ public class DatabaseMysqlImpl extends AbstractDatabase implements IDatabaseInte
@Override
public List<ColumnDescription> querySelectSqlColumnMeta(String sql) {
String querySQL = String.format(" %s LIMIT 1", sql.replace(";", ""));
String querySQL = String.format(" %s LIMIT 0,1", sql.replace(";", ""));
return this.getSelectSqlColumnMeta(querySQL);
}