mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2026-03-13 09:02:05 +08:00
add execution successful
This commit is contained in:
@@ -14,4 +14,5 @@ connection.error=Connection failed, please check the connection information
|
||||
connection.ssh.error=SSH connection failed, please check the connection information
|
||||
connection.driver.load.error=Failed to load driver class, please check the driver jar package
|
||||
# sqlResult
|
||||
sqlResult.rowNumber=Row Number
|
||||
sqlResult.rowNumber=Row Number
|
||||
sqlResult.success=Execution successful
|
||||
@@ -11,4 +11,5 @@ connection.error=Connection failed, please check the connection information
|
||||
connection.ssh.error=SSH connection failed, please check the connection information
|
||||
connection.driver.load.error=Failed to load driver class, please check the driver jar package
|
||||
# sqlResult
|
||||
sqlResult.rowNumber=Row Number
|
||||
sqlResult.rowNumber=Row Number
|
||||
sqlResult.success=Execution successful
|
||||
@@ -13,4 +13,5 @@ connection.error=数据库链接异常,请检查数据库配置
|
||||
connection.ssh.error=SSH 链接异常,请检查SSH配置
|
||||
connection.driver.load.error=数据库驱动加载异常,请检查驱动配置
|
||||
# sqlResult
|
||||
sqlResult.rowNumber=行号
|
||||
sqlResult.rowNumber=行号
|
||||
sqlResult.success=执行成功
|
||||
@@ -12,6 +12,7 @@ import java.util.function.Function;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import ai.chat2db.server.tools.base.constant.EasyToolsConstant;
|
||||
import ai.chat2db.server.tools.common.util.I18nUtils;
|
||||
import ai.chat2db.spi.model.*;
|
||||
|
||||
import ai.chat2db.spi.util.ResultSetUtils;
|
||||
@@ -100,7 +101,7 @@ public class SQLExecutor {
|
||||
stmt.setFetchSize(EasyToolsConstant.MAX_PAGE_SIZE);
|
||||
TimeInterval timeInterval = new TimeInterval();
|
||||
boolean query = stmt.execute(sql.replaceFirst(";", ""));
|
||||
executeResult.setDescription("执行成功");
|
||||
executeResult.setDescription(I18nUtils.getMessage("sqlResult.success"));
|
||||
// 代表是查询
|
||||
if (query) {
|
||||
ResultSet rs = null;
|
||||
|
||||
Reference in New Issue
Block a user