Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

SQL Server 2008 R2 (SP3)出现异常 #138

Open
zsy619 opened this issue Aug 24, 2024 · 4 comments
Open

SQL Server 2008 R2 (SP3)出现异常 #138

zsy619 opened this issue Aug 24, 2024 · 4 comments
Assignees

Comments

@zsy619
Copy link

zsy619 commented Aug 24, 2024

GORM Playground Link

go-gorm/playground#1

Description

dc.go文件
dc
出现如下错误:

2024/08/24 11:57:33 /mooc/app/etl/service/dc.go:128
[info] replacing callback `gorm:create` from /mooc/app/etl/service/dc.go:128

2024/08/24 11:57:33 /mooc/app/etl/service/dc.go:128
[info] replacing callback `gorm:update` from /mooc/app/etl/service/dc.go:128

2024/08/24 11:57:33 /mooc/app/etl/service/dc.go:211
[info] replacing callback `gorm:create` from /mooc/app/etl/service/dc.go:211

2024/08/24 11:57:33 /mooc/app/etl/service/dc.go:211
[info] replacing callback `gorm:update` from /mooc/app/etl/service/dc.go:211

2024/08/24 11:57:39 /mooc/app/etl/service/dc.go:334
[info] replacing callback `gorm:create` from /mooc/app/etl/service/dc.go:334

2024/08/24 11:57:39 /mooc/app/etl/service/dc.go:334
[info] replacing callback `gorm:update` from /mooc/app/etl/service/dc.go:334

2024/08/24 11:57:39 /mooc/app/etl/service/dc.go:341 mssql: 在 FETCH 语句中选项 NEXT 的用法无效。
[1.002ms] [rows:-] SELECT * FROM "mz" ORDER BY (SELECT NULL) OFFSET 0 ROW FETCH NEXT 1 ROWS ONLY

2024/08/24 11:57:39 /mooc/app/etl/service/dc.go:341
[error] generate struct from table fail: mssql: 在 FETCH 语句中选项 NEXT 的用法无效。
@zsy619
Copy link
Author

zsy619 commented Aug 24, 2024

sql server 2016就没有问题

@zsy619
Copy link
Author

zsy619 commented Aug 24, 2024

@jinzhu 帮忙看下,急需

@zsy619
Copy link
Author

zsy619 commented Aug 24, 2024

image
定位到这个地方

@zsy619
Copy link
Author

zsy619 commented Aug 25, 2024

@jinzhu

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants