server: fix connection string collation (#1811)

This commit is contained in:
Ewan Chou
2016-10-10 19:02:40 +08:00
committed by GitHub
parent a672100ebd
commit 80ea2ea093

View File

@ -78,7 +78,7 @@ type clientConn struct {
}
func (cc *clientConn) String() string {
collationStr := mysql.Collations[uint8(cc.connectionID)]
collationStr := mysql.Collations[cc.collation]
return fmt.Sprintf("conn: %s, status: %d, collation: %s, user: %s, lastInsertId: %d",
cc.conn.RemoteAddr(), cc.ctx.Status(), collationStr, cc.user, cc.ctx.LastInsertID(),
)