Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSQL driver should not be hard-coded to public schema #15

Open
Watkinsong opened this issue Dec 15, 2017 · 1 comment
Open

PostgreSQL driver should not be hard-coded to public schema #15

Watkinsong opened this issue Dec 15, 2017 · 1 comment

Comments

@Watkinsong
Copy link

What are you trying to achieve?

In src/Codeception/Lib/Driver/PostgreSql.php, the schema is hard-coded to "public" in method cleanup. In my setup, where the schema used for testing is not public, this causes tests to fail with a ModuleException:
[ModuleException] Db: SQLSTATE[42501]: Insufficient privilege: 7 ERROR: must be owner of schema public
The schema is taken into account in "load" method, and this should also be brought into cleaning up the test database.

Details

  • Codeception version: 2.3.7
  • PHP Version: 7.0.22
  • Operating System: Ubuntu
  • Installation type: Phar
  • List of installed packages (composer show)
@Naktibalda
Copy link
Member

Can you fix it?

@Naktibalda Naktibalda transferred this issue from Codeception/Codeception Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants