update ruoyi-generator/src/main/java/com/ruoyi/generator/controller/GenController.java.
Signed-off-by: yi-l-i-yi-li <8995991+yi-l-i-yi-li@user.noreply.gitee.com>
This commit is contained in:
parent
c61a805792
commit
bc80c8d9aa
|
|
@ -207,6 +207,8 @@ public class GenController extends BaseController
|
|||
if (sqlStatement instanceof MySqlCreateTableStatement)
|
||||
{
|
||||
MySqlCreateTableStatement createTableStatement = (MySqlCreateTableStatement) sqlStatement;
|
||||
//检查sql是否存在关键字
|
||||
SqlUtil.filterKeyword(createTableStatement.toString());
|
||||
if (genTableService.createTable(createTableStatement.toString()))
|
||||
{
|
||||
String tableName = createTableStatement.getTableName().replaceAll("`", "");
|
||||
|
|
|
|||
Loading…
Reference in New Issue