Browse Source

throw error if no charset could be set

Arne Hormann 12 năm trước cách đây
mục cha
commit
7da9257c89
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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":