Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updates
  • Loading branch information
dveeden committed Feb 4, 2025
commit a4f390b62b2f002a6831cbb444c5f2b3d9f6362d
2 changes: 1 addition & 1 deletion client/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,6 @@ func (c *Conn) exec_send(query string) error {
}
c.queryAttributes = append(c.queryAttributes, lineAttr)
}

}

if c.capability&CLIENT_QUERY_ATTRIBUTES > 0 {
Expand Down Expand Up @@ -675,6 +674,7 @@ func (c *Conn) StatusString() string {
return strings.Join(stats, "|")
}

// SetQueryAttributes sets the query attributes to be send along with the next query
func (c *Conn) SetQueryAttributes(attrs ...QueryAttribute) error {
c.queryAttributes = attrs
return nil
Expand Down
1 change: 0 additions & 1 deletion client/stmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ func (s *Stmt) write(args ...interface{}) error {
}
s.conn.queryAttributes = append(s.conn.queryAttributes, lineAttr)
}

}

qaLen := len(s.conn.queryAttributes)
Expand Down
2 changes: 1 addition & 1 deletion mysql/queryattributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (qa *QueryAttribute) TypeAndFlag() []byte {
case string:
return []byte{MYSQL_TYPE_STRING, 0x0}
case uint64:
return []byte{MYSQL_TYPE_LONGLONG, UNSIGNED_FLAG}
return []byte{MYSQL_TYPE_LONGLONG, PARAM_UNSIGNED}
default:
log.Warnf("query attribute with unsupported type %T", v)
}
Expand Down
Loading