mirror of
https://github.com/astaxie/beego.git
synced 2025-07-06 20:30:18 +00:00
update
This commit is contained in:
@ -172,7 +172,6 @@ func (d *DB) QueryRow(query string, args ...interface{}) *sql.Row {
|
|||||||
stmt, err := d.getStmt(query)
|
stmt, err := d.getStmt(query)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
return stmt.QueryRow(args...)
|
return stmt.QueryRow(args...)
|
||||||
|
|
||||||
@ -183,7 +182,6 @@ func (d *DB) QueryRowContext(ctx context.Context, query string, args ...interfac
|
|||||||
stmt, err := d.getStmt(query)
|
stmt, err := d.getStmt(query)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
return stmt.QueryRowContext(ctx, args)
|
return stmt.QueryRowContext(ctx, args)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user