You've already forked go-sqlxmock
mirror of
https://github.com/zhashkevych/go-sqlxmock.git
synced 2025-06-18 21:47:43 +02:00
allow to expect prepared statement to be closed, closes #89
This commit is contained in:
@ -6,12 +6,13 @@ import (
|
||||
|
||||
type statement struct {
|
||||
conn *sqlmock
|
||||
ex *ExpectedPrepare
|
||||
query string
|
||||
err error
|
||||
}
|
||||
|
||||
func (stmt *statement) Close() error {
|
||||
return stmt.err
|
||||
stmt.ex.wasClosed = true
|
||||
return stmt.ex.closeErr
|
||||
}
|
||||
|
||||
func (stmt *statement) NumInput() int {
|
||||
|
Reference in New Issue
Block a user