mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
mysql: connection fixes (#18428)
This commit is contained in:

committed by
GitHub

parent
7f178d4662
commit
f634f7b01f
@ -36,14 +36,13 @@ struct TestDefaultAtribute {
|
||||
}
|
||||
|
||||
fn test_mysql_orm() {
|
||||
mut db := mysql.Connection{
|
||||
mut db := mysql.connect(
|
||||
host: 'localhost'
|
||||
port: 3306
|
||||
username: 'root'
|
||||
password: ''
|
||||
dbname: 'mysql'
|
||||
}
|
||||
db.connect() or { panic(err) }
|
||||
)!
|
||||
defer {
|
||||
db.close()
|
||||
}
|
||||
@ -124,7 +123,6 @@ fn test_mysql_orm() {
|
||||
WHERE TABLE_NAME = 'TestCustomSqlType'
|
||||
ORDER BY ORDINAL_POSITION
|
||||
") or {
|
||||
println(err)
|
||||
panic(err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user