Skip to content

Commit

Permalink
修复Oscar(神通数据库)生成错误.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanjerry authored and nieqiurong committed Oct 29, 2020
1 parent 921a8e0 commit 6637ad1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.baomidou.mybatisplus.generator.config.querys;

/**
* <p></p>
* <p>Oscar(神通数据库) 表数据查询</p>
*
* @author whli
* @version 1.0.0
Expand All @@ -11,11 +11,11 @@ public class OscarQuery extends AbstractDbQuery {

@Override
public String tablesSql() {
return "SELECT " +
return "SELECT * FROM (SELECT " +
"a.TABLE_NAME, " +
"b.COMMENTS " +
"FROM USER_TABLES a " +
"INNER JOIN USER_TAB_COMMENTS b ON (b.TABLE_TYPE = 'TABLE' AND a.TABLE_NAME = b.TABLE_NAME) ";
"INNER JOIN USER_TAB_COMMENTS b ON (b.TABLE_TYPE = 'TABLE' AND a.TABLE_NAME = b.TABLE_NAME)) a WHERE 1=1 ";
}

@Override
Expand Down

0 comments on commit 6637ad1

Please sign in to comment.