Browse Source

debug

master v0.1.4
guzeng 2 years ago
parent
commit
69725b0063
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      tencentdb/chain.go

+ 8
- 0
tencentdb/chain.go View File

@ -431,6 +431,14 @@ func (this *Query) Find() (map[string]string, error) {
log.Println("Err: no conn")
}
var connection_id int
err = conn.Query("select CONNECTION_ID()").Scan(&connection_id)
if err != nil {
log.Println("query connection id failed:", err)
} else {
log.Println("connection id:", connection_id)
}
_, row, err := GetRow(conn, this.dbname, this.table, this.alias, this.title, this.join,
this.where, this.where_or, this.value, this.orderby, this.debug)


Loading…
Cancel
Save