1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-24 18:38:28 +00:00

Update github.com/lafriks/xormstore and tidy up mod.go (#8020)

This commit is contained in:
guillep2k
2019-08-28 18:17:14 -03:00
committed by Antoine GIRARD
parent dd3ba9bb6b
commit cedb285e25
20 changed files with 286 additions and 165 deletions

View File

@@ -187,6 +187,19 @@ _, err := db.ExecContext(ctx, "theproc", &rs)
log.Printf("status=%d", rs)
```
or
```
var rs mssql.ReturnStatus
_, err := db.QueryContext(ctx, "theproc", &rs)
for rows.Next() {
err = rows.Scan(&val)
}
log.Printf("status=%d", rs)
```
Limitation: ReturnStatus cannot be retrieved using `QueryRow`.
## Parameters
The `sqlserver` driver uses normal MS SQL Server syntax and expects parameters in