You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Fix Oracle CLI examples failing in GitHub Actions
- Fix BaseCliCommand::buildConfigFromEnv() to check PDODB_SERVICE_NAME/PDODB_SID for Oracle instead of PDODB_DATABASE
- Add PDODB_SERVICE_NAME and PDODB_SID to environment variables list in buildConfigFromEnv()
- Add setEnvFromConfig() helper function to set environment variables from config array
- Update Oracle examples (04-07) to use setEnvFromConfig() for CLI commands
- Fix 04-dump-restore.php to set SQLite PDODB_PATH before calling setEnvFromConfig()
- Fix 01-ddl.php to handle foreign key constraints for MySQL/MariaDB
This fixes the issue where Oracle examples failed in GitHub Actions because
environment variables were set but buildConfigFromEnv() required PDODB_DATABASE
which Oracle doesn't use (it uses PDODB_SERVICE_NAME or PDODB_SID instead).
0 commit comments