Skip to content

Commit 23a5579

Browse files
committed
New Wiki-URL
1 parent bab9d5e commit 23a5579

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packets.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,12 @@ func (mc *mysqlConn) writeAuthPacket() (e error) {
212212
// User Password
213213
scrambleBuff := scramblePassword(mc.server.scrambleBuff, []byte(mc.cfg.passwd))
214214

215-
pktLen := 4 + 4 + 1 + 23 + len(mc.cfg.user) + 1 + 1 + len(scrambleBuff)
215+
pktLen := 4 + 4 + 1 + 23 + len(mc.cfg.user) + 1 + 1 + len(scrambleBuff)
216216

217217
// To specify a db name
218218
if len(mc.cfg.dbname) > 0 {
219219
clientFlags |= uint32(CLIENT_CONNECT_WITH_DB)
220-
pktLen += len(mc.cfg.dbname) + 1
220+
pktLen += len(mc.cfg.dbname) + 1
221221
}
222222

223223
// Calculate packet length and make buffer with that size
@@ -341,7 +341,7 @@ func (mc *mysqlConn) readResultOK() (e error) {
341341
return mc.handleOkPacket(data)
342342
// EOF, someone is using old_passwords
343343
case 254:
344-
e = errors.New("It seems like you are using old_passwords, which is unsupported. See http://code.google.com/p/go-mysql-driver/wiki/old_passwords")
344+
e = errors.New("It seems like you are using old_passwords, which is unsupported. See https://github.com/Go-SQL-Driver/MySQL/wiki/old_passwords")
345345
return
346346
// ERROR
347347
case 255:

0 commit comments

Comments
 (0)