mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 11:47:36 +08:00
[REV] remove debug log
This commit is contained in:
parent
6d533dce54
commit
ff0d11c14c
3
vendor/github.com/lib/pq/conn.go
generated
vendored
3
vendor/github.com/lib/pq/conn.go
generated
vendored
@ -802,7 +802,6 @@ func (cn *conn) prepareTo(q, stmtName string) *stmt {
|
||||
}
|
||||
|
||||
func (cn *conn) Prepare(q string) (_ driver.Stmt, err error) {
|
||||
fmt.Println("Prepare", q)
|
||||
if cn.bad {
|
||||
return nil, driver.ErrBadConn
|
||||
}
|
||||
@ -838,7 +837,6 @@ func (cn *conn) Close() (err error) {
|
||||
|
||||
// Implement the "Queryer" interface
|
||||
func (cn *conn) Query(query string, args []driver.Value) (driver.Rows, error) {
|
||||
fmt.Println(query, args)
|
||||
return cn.query(query, args)
|
||||
}
|
||||
|
||||
@ -879,7 +877,6 @@ func (cn *conn) query(query string, args []driver.Value) (_ *rows, err error) {
|
||||
|
||||
// Implement the optional "Execer" interface for one-shot queries
|
||||
func (cn *conn) Exec(query string, args []driver.Value) (res driver.Result, err error) {
|
||||
fmt.Println("Exec", query, args)
|
||||
if cn.bad {
|
||||
return nil, driver.ErrBadConn
|
||||
}
|
||||
|
3
vendor/github.com/lib/pq/conn_go18.go
generated
vendored
3
vendor/github.com/lib/pq/conn_go18.go
generated
vendored
@ -18,10 +18,8 @@ func (cn *conn) QueryContext(ctx context.Context, query string, args []driver.Na
|
||||
list[i] = nv.Value
|
||||
}
|
||||
finish := cn.watchCancel(ctx)
|
||||
fmt.Println(query)
|
||||
r, err := cn.query(query, list)
|
||||
if err != nil {
|
||||
fmt.Printf("ExecContext(%s) Error %s \n", query, err)
|
||||
if finish != nil {
|
||||
finish()
|
||||
}
|
||||
@ -33,7 +31,6 @@ func (cn *conn) QueryContext(ctx context.Context, query string, args []driver.Na
|
||||
|
||||
// Implement the "ExecerContext" interface
|
||||
func (cn *conn) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error) {
|
||||
fmt.Println("ExecContext")
|
||||
list := make([]driver.Value, len(args))
|
||||
for i, nv := range args {
|
||||
list[i] = nv.Value
|
||||
|
Loading…
Reference in New Issue
Block a user