diff --git a/dbpool.go b/dbpool.go index faa00d6..6e3cbd0 100644 --- a/dbpool.go +++ b/dbpool.go @@ -275,7 +275,7 @@ func (this *dbPool) internalQuery(dataSource string, sql string, params []string cb QueryResultCb) { ds := this.borrowConn(dataSource) if ds == nil { - cb(errors.New("borrowConn error"), int64(0), int64(0)) + cb(errors.New("borrowConn error"), nil) return } rows, err := ds.conn.Query(sql, q5.ToInterfaces(params)...) @@ -295,7 +295,7 @@ func (this *dbPool) internalQueryOne(dataSource string, sql string, params []str cb QueryOneCb) { ds := this.borrowConn(dataSource) if ds == nil { - cb(errors.New("borrowConn error"), int64(0), int64(0)) + cb(errors.New("borrowConn error"), nil) return } rows, err := ds.conn.Query(sql, q5.ToInterfaces(params)...)