mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Use separate sqlsrv dbs for different exts
This refers to pdo_dblib, pdo_odbc and odbc in particular. Closes GH-12342
This commit is contained in:
parent
eebc528cbf
commit
769f41bb21
2
.github/actions/setup-x64/action.yml
vendored
2
.github/actions/setup-x64/action.yml
vendored
@ -14,6 +14,8 @@ runs:
|
||||
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;"
|
||||
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;"
|
||||
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;"
|
||||
docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "CREATE DATABASE odbc;"
|
||||
docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "CREATE DATABASE pdo_odbc;"
|
||||
sudo locale-gen de_DE
|
||||
|
||||
./.github/scripts/setup-slapd.sh
|
||||
|
4
.github/actions/test-linux/action.yml
vendored
4
.github/actions/test-linux/action.yml
vendored
@ -32,8 +32,8 @@ runs:
|
||||
export PDO_PGSQL_TEST_DSN="host=postgres dbname=test port=5432 user=postgres password=postgres"
|
||||
export ODBC_TEST_USER="odbc_test"
|
||||
export ODBC_TEST_PASS="password"
|
||||
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"
|
||||
export PDO_ODBC_TEST_DSN="odbc:$ODBC_TEST_DSN"
|
||||
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"
|
||||
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"
|
||||
export SKIP_IO_CAPTURE_TESTS=1
|
||||
export TEST_PHP_JUNIT=junit.out.xml
|
||||
export STACK_LIMIT_DEFAULTS_CHECK=1
|
||||
|
Loading…
Reference in New Issue
Block a user