diff --git a/tencentdb/chain.go b/tencentdb/chain.go index c89ec97..1989c8a 100644 --- a/tencentdb/chain.go +++ b/tencentdb/chain.go @@ -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)