You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: errors.go
+13-12Lines changed: 13 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -19,18 +19,19 @@ import (
19
19
20
20
// Various errors the driver might return. Can change between driver versions.
21
21
var (
22
-
ErrInvalidConn=errors.New("invalid connection")
23
-
ErrMalformPkt=errors.New("malformed packet")
24
-
ErrNoTLS=errors.New("TLS requested but server does not support TLS")
25
-
ErrCleartextPassword=errors.New("this user requires clear text authentication. If you still want to use it, please add 'allowCleartextPasswords=1' to your DSN")
26
-
ErrNativePassword=errors.New("this user requires mysql native password authentication.")
27
-
ErrOldPassword=errors.New("this user requires old password authentication. If you still want to use it, please add 'allowOldPasswords=1' to your DSN. See also https://github.com/go-sql-driver/mysql/wiki/old_passwords")
28
-
ErrUnknownPlugin=errors.New("this authentication plugin is not supported")
29
-
ErrOldProtocol=errors.New("MySQL server does not support required protocol 41+")
30
-
ErrPktSync=errors.New("commands out of sync. You can't run this command now")
31
-
ErrPktSyncMul=errors.New("commands out of sync. Did you run multiple statements at once?")
32
-
ErrPktTooLarge=errors.New("packet for query is too large. Try adjusting the 'max_allowed_packet' variable on the server")
33
-
ErrBusyBuffer=errors.New("busy buffer")
22
+
ErrInvalidConn=errors.New("invalid connection")
23
+
ErrMalformPkt=errors.New("malformed packet")
24
+
ErrNoTLS=errors.New("TLS requested but server does not support TLS")
25
+
ErrCleartextPassword=errors.New("this user requires clear text authentication. If you still want to use it, please add 'allowCleartextPasswords=1' to your DSN")
26
+
ErrNativePassword=errors.New("this user requires mysql native password authentication.")
27
+
ErrOldPassword=errors.New("this user requires old password authentication. If you still want to use it, please add 'allowOldPasswords=1' to your DSN. See also https://github.com/go-sql-driver/mysql/wiki/old_passwords")
28
+
ErrUnknownPlugin=errors.New("this authentication plugin is not supported")
29
+
ErrOldProtocol=errors.New("MySQL server does not support required protocol 41+")
30
+
ErrPktSync=errors.New("commands out of sync. You can't run this command now")
31
+
ErrPktSyncMul=errors.New("commands out of sync. Did you run multiple statements at once?")
32
+
ErrPktTooLarge=errors.New("packet for query is too large. Try adjusting the 'max_allowed_packet' variable on the server")
33
+
ErrBusyBuffer=errors.New("busy buffer")
34
+
ErrReadOnlyTxNotSupported=errors.New("read-only transactions not supported")
0 commit comments