openbsd-ports/databases/tdbc-mysql/patches/patch-tests_tdbcmysql_test
stu 85b6265528 Update to 1.1.3.
Update HOMEPAGE.

Add TESTFLAGS var for Tdbc-mysql test control.
Upstream build improvements mean that now the Tdbc-mysql
tests can be run like normal Tcl TEA extension tests.

Add patch because MariaDb removed "MySQL" from error messages,
causing a test to fail.

Add cheap patch because mysql_get_client_version() since 10.6.2
returns the client version and no longer the server version,
breaking an assumption made by this software.

Add patch from upstream, fixing bug:
https://core.tcl-lang.org/tdbcmysql/info/9bf0e3e2e7.
This comment in the port Makefile was/is wrong:
"Skip test requiring isolation levels not provided by MariaDB"
All tests pass now.
2022-05-24 02:59:08 +00:00

13 lines
461 B
Plaintext

Index: tests/tdbcmysql.test
--- tests/tdbcmysql.test.orig
+++ tests/tdbcmysql.test
@@ -118,7 +118,7 @@ test tdbc::mysql-1.9 {create a connection, failure} {*
list $status $result $::errorCode
}
-match glob
- -result {1 {Unknown MySQL server host*} {TDBC GENERAL_ERROR HY000 MYSQL *}}
+ -result {1 {Unknown *server host*} {TDBC GENERAL_ERROR HY000 MYSQL *}}
}
#------------------------------------------------------------------------------