73e5c36f25
* Upgrade xorm to v1.2.2 (#16663) Backport #16663 Fix #16683 * Upgrade xorm to v1.2.2 * Change the Engine interface to match xorm v1.2.2 * Add test to ensure that dumping of login sources remains correct (#16847) #16831 has occurred because of a missed regression. This PR adds a simple test to try to prevent this occuring again. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
24 lines
533 B
Go
Vendored
24 lines
533 B
Go
Vendored
// Go MySQL Driver - A MySQL-Driver for Go's database/sql package.
|
|
//
|
|
// Copyright 2020 The Go-MySQL-Driver Authors. All rights reserved.
|
|
//
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
// You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
// +build gofuzz
|
|
|
|
package mysql
|
|
|
|
import (
|
|
"database/sql"
|
|
)
|
|
|
|
func Fuzz(data []byte) int {
|
|
db, err := sql.Open("mysql", string(data))
|
|
if err != nil {
|
|
return 0
|
|
}
|
|
db.Close()
|
|
return 1
|
|
}
|