Skip to content

Commit 769f41b

Browse files
committedOct 2, 2023
Use separate sqlsrv dbs for different exts
This refers to pdo_dblib, pdo_odbc and odbc in particular. Closes GH-12342
1 parent eebc528 commit 769f41b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎.github/actions/setup-x64/action.yml

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ runs:
1414
docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "create login pdo_test with password='password', check_policy=off; create user pdo_test for login pdo_test; grant alter, control to pdo_test;"
1515
docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "create login odbc_test with password='password', check_policy=off; create user odbc_test for login odbc_test; grant alter, control, delete to odbc_test;"
1616
docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "ALTER SERVER ROLE sysadmin ADD MEMBER odbc_test;"
17+
docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "CREATE DATABASE odbc;"
18+
docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "CREATE DATABASE pdo_odbc;"
1719
sudo locale-gen de_DE
1820
1921
./.github/scripts/setup-slapd.sh

‎.github/actions/test-linux/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ runs:
3232
export PDO_PGSQL_TEST_DSN="host=postgres dbname=test port=5432 user=postgres password=postgres"
3333
export ODBC_TEST_USER="odbc_test"
3434
export ODBC_TEST_PASS="password"
35-
export ODBC_TEST_DSN="Driver={ODBC Driver 17 for SQL Server};Server=127.0.0.1;Database=master;uid=$ODBC_TEST_USER;pwd=$ODBC_TEST_PASS"
36-
export PDO_ODBC_TEST_DSN="odbc:$ODBC_TEST_DSN"
35+
export ODBC_TEST_DSN="Driver={ODBC Driver 17 for SQL Server};Server=127.0.0.1;Database=odbc;uid=$ODBC_TEST_USER;pwd=$ODBC_TEST_PASS"
36+
export PDO_ODBC_TEST_DSN="odbc:Driver={ODBC Driver 17 for SQL Server};Server=127.0.0.1;Database=pdo_odbc;uid=$ODBC_TEST_USER;pwd=$ODBC_TEST_PASS"
3737
export SKIP_IO_CAPTURE_TESTS=1
3838
export TEST_PHP_JUNIT=junit.out.xml
3939
export STACK_LIMIT_DEFAULTS_CHECK=1

0 commit comments

Comments
 (0)