Skip to content

Commit 57d5dc5

Browse files
committed
PHP, meet MySQL
All pdo_mysql tests are skipped on AppVeyor because "No such host is known". We change the DSN to use semicolons instead of spaces to fix that.
1 parent 1660988 commit 57d5dc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appveyor/test_task.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ set PDO_MYSQL_TEST_USER=%MYSQL_TEST_USER%
2727
set PDO_MYSQL_TEST_PASS=%MYSQL_PWD%
2828
set PDO_MYSQL_TEST_HOST=%MYSQL_TEST_HOST%
2929
set PDO_MYSQL_TEST_PORT=%MYSQL_TEST_PORT%
30-
set PDO_MYSQL_TEST_DSN=mysql:host=%PDO_MYSQL_TEST_HOST% port=%PDO_MYSQL_TEST_PORT% dbname=test user=%PDO_MYSQL_TEST_USER% password=%MYSQL_PW%
30+
set PDO_MYSQL_TEST_DSN=mysql:host=%PDO_MYSQL_TEST_HOST%;port=%PDO_MYSQL_TEST_PORT%;dbname=test;user=%PDO_MYSQL_TEST_USER%;password=%MYSQL_PW%
3131
"C:\Program Files\MySql\MySQL Server 5.7\bin\mysql.exe" --user=%MYSQL_TEST_USER% -e "CREATE DATABASE IF NOT EXISTS test"
3232
if %errorlevel% neq 0 exit /b 3
3333

0 commit comments

Comments
 (0)