1 // +build !go1.8 2 3 package sqlmock 4 5 import ( 6 "database/sql/driver" 7 ) 8 9 // Deprecated: Drivers should implement ExecerContext instead. 10 func (stmt *statement) Exec(args []driver.Value) (driver.Result, error) { 11 return stmt.conn.Exec(stmt.query, args) 12 } 13 14 // Deprecated: Drivers should implement StmtQueryContext instead (or additionally). 15 func (stmt *statement) Query(args []driver.Value) (driver.Rows, error) { 16 return stmt.conn.Query(stmt.query, args) 17 } 18