Skip to content

Commit c15e4aa

Browse files
fix - in mysql submodule is fixed FetchBool.
1 parent 77ce88f commit c15e4aa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mysql/main.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package mysql
22

33
import (
4-
"bytes"
54
"database/sql"
65
"errors"
76

@@ -116,11 +115,11 @@ func (c *Connection) FetchBool(query string) bool {
116115
return false
117116
}
118117

119-
if bytes.Equal(r.([]byte), []byte{48}) {
118+
if r == int64(0) {
120119
return false
121120
}
122121

123-
if bytes.Equal(r.([]byte), []byte{49}) {
122+
if r == int64(1) {
124123
return true
125124
}
126125

0 commit comments

Comments
 (0)