File tree 3 files changed +2
-3
lines changed
3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -508,7 +508,6 @@ func (c *Conn) exec_send(query string) error {
508
508
}
509
509
c .queryAttributes = append (c .queryAttributes , lineAttr )
510
510
}
511
-
512
511
}
513
512
514
513
if c .capability & CLIENT_QUERY_ATTRIBUTES > 0 {
@@ -675,6 +674,7 @@ func (c *Conn) StatusString() string {
675
674
return strings .Join (stats , "|" )
676
675
}
677
676
677
+ // SetQueryAttributes sets the query attributes to be send along with the next query
678
678
func (c * Conn ) SetQueryAttributes (attrs ... QueryAttribute ) error {
679
679
c .queryAttributes = attrs
680
680
return nil
Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ func (s *Stmt) write(args ...interface{}) error {
74
74
}
75
75
s .conn .queryAttributes = append (s .conn .queryAttributes , lineAttr )
76
76
}
77
-
78
77
}
79
78
80
79
qaLen := len (s .conn .queryAttributes )
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ func (qa *QueryAttribute) TypeAndFlag() []byte {
23
23
case string :
24
24
return []byte {MYSQL_TYPE_STRING , 0x0 }
25
25
case uint64 :
26
- return []byte {MYSQL_TYPE_LONGLONG , UNSIGNED_FLAG }
26
+ return []byte {MYSQL_TYPE_LONGLONG , PARAM_UNSIGNED }
27
27
default :
28
28
log .Warnf ("query attribute with unsupported type %T" , v )
29
29
}
You can’t perform that action at this time.
0 commit comments