mirror of
https://github.com/DATA-DOG/go-sqlmock.git
synced 2025-03-19 20:57:50 +02:00
18 lines
452 B
Go
18 lines
452 B
Go
|
// +build !go1.8
|
||
|
|
||
|
package sqlmock
|
||
|
|
||
|
import (
|
||
|
"database/sql/driver"
|
||
|
)
|
||
|
|
||
|
// Deprecated: Drivers should implement ExecerContext instead.
|
||
|
func (stmt *statement) Exec(args []driver.Value) (driver.Result, error) {
|
||
|
return stmt.conn.Exec(stmt.query, args)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Drivers should implement StmtQueryContext instead (or additionally).
|
||
|
func (stmt *statement) Query(args []driver.Value) (driver.Rows, error) {
|
||
|
return stmt.conn.Query(stmt.query, args)
|
||
|
}
|