2
0

Rename Preparex to PrepareEx

This commit is contained in:
Jack Christensen
2016-05-20 08:14:56 -05:00
parent a0d005a993
commit b06560aa03
3 changed files with 19 additions and 19 deletions
+3 -3
View File
@@ -136,13 +136,13 @@ func (tx *Tx) Prepare(name, sql string) (*PreparedStatement, error) {
return tx.conn.Prepare(name, sql)
}
// Preparex delegates to the underlying *Conn
func (tx *Tx) Preparex(name, sql string, opts PreparexOptions) (*PreparedStatement, error) {
// PrepareEx delegates to the underlying *Conn
func (tx *Tx) PrepareEx(name, sql string, opts PrepareExOptions) (*PreparedStatement, error) {
if tx.status != TxStatusInProgress {
return nil, ErrTxClosed
}
return tx.conn.Preparex(name, sql, opts)
return tx.conn.PrepareEx(name, sql, opts)
}
// Query delegates to the underlying *Conn