Driver connector.

This commit is contained in:
Nuno Cruces
2023-08-10 13:18:13 +01:00
parent f1e36e2581
commit 77f37893b9
2 changed files with 55 additions and 27 deletions

View File

@@ -61,12 +61,12 @@ func (s *Stmt) ClearBindings() error {
func (s *Stmt) Step() bool {
s.c.checkInterrupt()
r := s.c.call(s.c.api.step, uint64(s.handle))
if r == _ROW {
switch r {
case _ROW:
return true
}
if r == _DONE {
case _DONE:
s.err = nil
} else {
default:
s.err = s.c.error(r)
}
return false