308 Star 2.3K Fork 814

AE86 / DBSyncer

 / 详情

从mssql获取数据时,如果有字段名为关键字如:convert,则会报错,能否在生成的语句中字段名加上括号[]

已完成
创建于  
2023-06-12 10:04

从mssql获取数据时,如果有字段名为关键字如:convert,则会报错,能否在生成的语句中字段名加上括号[]
非常感谢!
下面是异常信息:

PreparedStatementCallback; uncategorized SQLException for SQL [SELECT * FROM (SELECT ROW_NUMBER() OVER(ORDER BY DlyOrder) AS SQLSERVER_ROW_ID, * FROM (SELECT BillType, DlyOrder, Vchcode, Vchtype, BranchId, AtypeId, BtypeId, EtypeId, KtypeId, Dtypeid, PtypeId, Qty, Discount, DiscountPrice, VipCardId, VipDiscount, CostPrice, CostTotal, RetailPrice, Price, Total, Date, Period, Tax, TaxPrice, TaxTotal, Tax_Total, DiscountTotal, CostMode, Unit, ToQty, IsOver, ColorId, IfSupply, Convert, BargainTotal, SaleTrait, PackCode, PackRate, PackQty, Comment, RowOrderNew, RowOrder, CustValue1, CustValue2, CustValue3, CustValue4, CustValue5, CustValue6, OpID, UnitRate, SingleUnit, Phrows, NtfQty, BackQty, Tax_Price, DUQty FROM dbo.BakDlyOrder) S) A WHERE A.SQLSERVER_ROW_ID BETWEEN ? AND ?]; SQL state [S0001]; error code [102]; ',' 附近有语法错误。; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: ',' 附近有语法错误。

评论 (1)

aixi 创建了任务
AE86 任务状态待办的 修改为进行中
AE86 任务状态进行中 修改为已完成
展开全部操作日志

已支持。拉取最新分支,重编译即可。

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
376718 ghi 1660456020
Java
1
https://gitee.com/ghi/dbsyncer.git
git@gitee.com:ghi/dbsyncer.git
ghi
dbsyncer
DBSyncer

搜索帮助