File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -119,23 +119,23 @@ func (s *Stmt) write(args ...interface{}) error {
119119 paramValues [i ] = Uint64ToBytes (uint64 (v ))
120120 case uint8 :
121121 paramTypes [i ] = []byte {MYSQL_TYPE_TINY }
122- paramFlags [i ] = []byte {UNSIGNED_FLAG }
122+ paramFlags [i ] = []byte {BINARY_FLAG }
123123 paramValues [i ] = []byte {v }
124124 case uint16 :
125125 paramTypes [i ] = []byte {MYSQL_TYPE_SHORT }
126- paramFlags [i ] = []byte {UNSIGNED_FLAG }
126+ paramFlags [i ] = []byte {BINARY_FLAG }
127127 paramValues [i ] = Uint16ToBytes (v )
128128 case uint32 :
129129 paramTypes [i ] = []byte {MYSQL_TYPE_LONG }
130- paramFlags [i ] = []byte {UNSIGNED_FLAG }
130+ paramFlags [i ] = []byte {BINARY_FLAG }
131131 paramValues [i ] = Uint32ToBytes (v )
132132 case uint :
133133 paramTypes [i ] = []byte {MYSQL_TYPE_LONGLONG }
134- paramFlags [i ] = []byte {UNSIGNED_FLAG }
134+ paramFlags [i ] = []byte {BINARY_FLAG }
135135 paramValues [i ] = Uint64ToBytes (uint64 (v ))
136136 case uint64 :
137137 paramTypes [i ] = []byte {MYSQL_TYPE_LONGLONG }
138- paramFlags [i ] = []byte {UNSIGNED_FLAG }
138+ paramFlags [i ] = []byte {BINARY_FLAG }
139139 paramValues [i ] = Uint64ToBytes (v )
140140 case bool :
141141 paramTypes [i ] = []byte {MYSQL_TYPE_TINY }
You can’t perform that action at this time.
0 commit comments