limit和QueryString一起使用的一个问题 #1735

Open
opened 2020-07-08 11:37:20 +00:00 by 344085057 · 8 comments
dataArr, err := engine.Table("View_rszl").Limit(20,20).QueryString()
dataArr, err := engine.Table("View_rszl").Limit(20,20).QueryString()
344085057 changed title from invalid memory address or nil pointer dereference to limit和QueryString一起使用的一个问题 2020-07-08 11:43:11 +00:00
Author

这样的话 正常
dataArr, err := engine.Table("View_rszl").Limit(20,0).QueryString()

这样的话 正常 dataArr, err := engine.Table("View_rszl").Limit(20,0).QueryString()
Author

sql server
xorm 1.0.2

sql server xorm 1.0.2
Owner

Could you paste generated SQL ?

Could you paste generated SQL ?
Author

没有输出sql日志

没有输出sql日志
Author

2020/07/08 20:02:31.409 [C] [panic.go:969] Handler crashed with error runtime error: invalid memory address or nil pointer dereference
2020/07/08 20:02:31.409 [C] [panic.go:969] C:/Go/src/runtime/panic.go:969
2020/07/08 20:02:31.409 [C] [panic.go:969] C:/Go/src/runtime/panic.go:212
2020/07/08 20:02:31.409 [C] [panic.go:969] C:/Go/src/runtime/signal_windows.go:246
2020/07/08 20:02:31.409 [C] [panic.go:969] C:/Users/admin/go/pkg/mod/xorm.io/xorm@v1.0.2/schemas/table.go:91
2020/07/08 20:02:31.409 [C] [panic.go:969] C:/Users/admin/go/pkg/mod/xorm.io/xorm@v1.0.2/internal/statements/query.go:234
2020/07/08 20:02:31.409 [C] [panic.go:969] C:/Users/admin/go/pkg/mod/xorm.io/xorm@v1.0.2/internal/statements/query.go:429
2020/07/08 20:02:31.409 [C] [panic.go:969] C:/Users/admin/go/pkg/mod/xorm.io/xorm@v1.0.2/session_find.go:139
2020/07/08 20:02:31.409 [C] [panic.go:969] C:/Users/admin/go/pkg/mod/xorm.io/xorm@v1.0.2/session_find.go:31

2020/07/08 20:02:31.409 [C] [panic.go:969] Handler crashed with error runtime error: invalid memory address or nil pointer dereference 2020/07/08 20:02:31.409 [C] [panic.go:969] C:/Go/src/runtime/panic.go:969 2020/07/08 20:02:31.409 [C] [panic.go:969] C:/Go/src/runtime/panic.go:212 2020/07/08 20:02:31.409 [C] [panic.go:969] C:/Go/src/runtime/signal_windows.go:246 2020/07/08 20:02:31.409 [C] [panic.go:969] C:/Users/admin/go/pkg/mod/xorm.io/xorm@v1.0.2/schemas/table.go:91 2020/07/08 20:02:31.409 [C] [panic.go:969] C:/Users/admin/go/pkg/mod/xorm.io/xorm@v1.0.2/internal/statements/query.go:234 2020/07/08 20:02:31.409 [C] [panic.go:969] C:/Users/admin/go/pkg/mod/xorm.io/xorm@v1.0.2/internal/statements/query.go:429 2020/07/08 20:02:31.409 [C] [panic.go:969] C:/Users/admin/go/pkg/mod/xorm.io/xorm@v1.0.2/session_find.go:139 2020/07/08 20:02:31.409 [C] [panic.go:969] C:/Users/admin/go/pkg/mod/xorm.io/xorm@v1.0.2/session_find.go:31
lunny added the
kind
bug
label 2020-07-08 12:30:56 +00:00
lunny added this to the 1.0.3 milestone 2020-07-08 12:31:02 +00:00
lunny modified the milestone from 1.0.3 to 1.0.4 2020-07-10 12:53:46 +00:00
Author

太坏了 1.0.4

太坏了 1.0.4
lunny modified the milestone from 1.0.4 to 1.0.5 2020-08-31 08:10:09 +00:00
lunny added the
db
sqlserver
label 2020-09-08 14:05:23 +00:00
Owner

This is a MSSQL specific problem.

This is a MSSQL specific problem.
lunny modified the milestone from 1.0.5 to 1.0.6 2020-09-08 15:41:15 +00:00
Owner

This will not be supported with sqlserver.

This will not be supported with sqlserver.
lunny modified the milestone from 1.0.6 to 1.1.1 2020-11-03 09:00:11 +00:00
lunny modified the milestone from 1.1.1 to (deleted) 2021-06-07 08:24:25 +00:00
lunny added the
upstream
label 2021-07-21 12:29:16 +00:00
lunny removed this from the (deleted) milestone 2021-07-21 12:29:20 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/xorm#1735
No description provided.