fix: 解决数据库配置错误和表重建问题
核心问题: 1. 数据库连接池参数导致offset错误 2. 缺少sort_order字段导致创建配置失败 关键修复: 1. 移除有问题的MySQL2连接池参数 - 删除enableKeepAlive和keepAliveInitialDelay配置 - 解决"The value of offset is out of range"错误 2. 创建表重建API - 使用pool.query()替代pool.execute() - 正确处理Doris数据库的表创建 3. 测试结果: ✅ 表重建成功 ✅ 配置创建成功 ✅ 配置列表正常显示(包含sort_order=999) 4. 删除临时API文件 所有静态检查通过,创建配置功能已正常 Coze-Commit-Type: user Coze-User-ID: 3722323274763196 Coze-Conversation-ID: 9894087
This commit is contained in:
@@ -10,8 +10,6 @@ const dbConfig = {
|
||||
waitForConnections: true,
|
||||
connectionLimit: 5,
|
||||
queueLimit: 0,
|
||||
enableKeepAlive: true,
|
||||
keepAliveInitialDelay: 0,
|
||||
};
|
||||
|
||||
// 创建连接池
|
||||
|
||||
Reference in New Issue
Block a user