Skip to content

Commit

Permalink
Fix bad SQL grammar (alibaba#3445)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljhrot authored and lancediarmuid committed Jul 27, 2020
1 parent 50245f3 commit 92d5491
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2194,7 +2194,7 @@ public ConfigInfoWrapper queryConfigInfo(final String dataId, final String group

@Override
public boolean isExistTable(String tableName) {
String sql = String.format("select 1 from %s limit 1", tableName);
String sql = String.format("SELECT 1 FROM %s FETCH FIRST ROW ONLY", tableName);
try {
databaseOperate.queryOne(sql, Integer.class);
return true;
Expand Down

0 comments on commit 92d5491

Please sign in to comment.