[REV] remove debug log

This commit is contained in:
barnett 2018-05-04 12:17:20 +08:00
parent 6d533dce54
commit ff0d11c14c
2 changed files with 0 additions and 6 deletions

3
vendor/github.com/lib/pq/conn.go generated vendored
View File

@ -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
}

View File

@ -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