From 9feb25029898860fa4d5c2e7f6bb370dcf289ee0 Mon Sep 17 00:00:00 2001 From: Robert Adam Date: Sun, 25 Feb 2024 19:23:14 +0100 Subject: [PATCH] Fix driver detection --- appveyor.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 2d29e5bf3..999beb0dc 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -57,10 +57,10 @@ install: $drivers_list = Get-ODBCList Write-Output $drivers_list $env:SOCI_ODBC_SKIP_TESTS = "soci_odbc_ms_access_tests" - if (-Not $drivers_list -clike '*MySQL*') { + if (-Not ($drivers_list -contains 'MySQL')) { $env:SOCI_ODBC_SKIP_TESTS = $env:SOCI_ODBC_SKIP_TESTS + '|soci_odbc_mysql_tests' } - if (-Not $drivers_list -clike '*PostgreSQL*') { + if (-Not ($drivers_list -contains 'PostgreSQL')) { $env:SOCI_ODBC_SKIP_TESTS = $env:SOCI_ODBC_SKIP_TESTS + '|soci_odbc_postgresql_tests' } Write-Output "To be skipped ODBC tests: $env:SOCI_ODBC_SKIP_TESTS"