Skip to content

Commit af380e9

Browse files
Use SET syntax as specified in the MySQL documentation (#1402)
1 parent 4591e42 commit af380e9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ Reed Allman <rdallman10 at gmail.com>
8383
Richard Wilkes <wilkes at me.com>
8484
Robert Russell <robert at rrbrussell.com>
8585
Runrioter Wung <runrioter at gmail.com>
86+
Samantha Frank <hello at entropy.cat>
8687
Santhosh Kumar Tekuri <santhosh.tekuri at gmail.com>
8788
Sho Iizuka <sho.i518 at gmail.com>
8889
Sho Ikeda <suicaicoca at gmail.com>

Diff for: connection.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ func (mc *mysqlConn) handleParams() (err error) {
7171
cmdSet.Grow(4 + len(param) + 1 + len(val) + 30*(len(mc.cfg.Params)-1))
7272
cmdSet.WriteString("SET ")
7373
} else {
74-
cmdSet.WriteByte(',')
74+
cmdSet.WriteString(", ")
7575
}
7676
cmdSet.WriteString(param)
77-
cmdSet.WriteByte('=')
77+
cmdSet.WriteString(" = ")
7878
cmdSet.WriteString(val)
7979
}
8080
}

0 commit comments

Comments
 (0)