Parcourir la source

throw error if no charset could be set

Arne Hormann il y a 12 ans
Parent
commit
7da9257c89
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      connection.go

+ 3 - 0
connection.go

@@ -58,6 +58,9 @@ func (mc *mysqlConn) handleParams() (err error) {
 					}
 				}
 			}
+			if err != nil {
+				return
+			}
 
 		// handled elsewhere
 		case "timeout", "allowAllFiles":