mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-31 11:42:41 +08:00
Support for creating database and schema
This commit is contained in:
@ -93,7 +93,7 @@ public class RdbDmlController {
|
||||
try {
|
||||
boolean flag = true;
|
||||
ExecuteResultVO executeResult = null;
|
||||
connection.setAutoCommit(false);
|
||||
//connection.setAutoCommit(false);
|
||||
ListResult<ExecuteResult> resultDTOListResult = dlTemplateService.execute(param);
|
||||
List<ExecuteResultVO> resultVOS = rdbWebConverter.dto2vo(resultDTOListResult.getData());
|
||||
if (!CollectionUtils.isEmpty(resultVOS)) {
|
||||
@ -107,7 +107,7 @@ public class RdbDmlController {
|
||||
}
|
||||
}
|
||||
if (flag) {
|
||||
connection.commit();
|
||||
//connection.commit();
|
||||
return DataResult.of(resultVOS.get(0));
|
||||
}else {
|
||||
connection.rollback();
|
||||
|
Reference in New Issue
Block a user