mirror of
https://github.com/syumai/workers.git
synced 2025-03-10 17:29:11 +00:00
fix rowsObj
This commit is contained in:
parent
f25a65c45a
commit
2aeed0ad5d
@ -64,7 +64,10 @@ func (s *stmt) QueryContext(_ context.Context, args []driver.NamedValue) (driver
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !rowsObj.Get("success").Bool() {
|
||||
return nil, errors.New("d1: failed to query")
|
||||
}
|
||||
return &rows{
|
||||
rowsObj: rowsObj,
|
||||
rowsObj: rowsObj.Get("results"),
|
||||
}, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user