Codeception / Codeception/module-db

PostgreSQL driver should not be hard-coded to public schema

Aperta
#15 1 commento 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
PHP
Stelle
23
Fork
31
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

#### 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`)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia in src/Codeception/Lib/Driver/PostgreSql.php, confrontando la gestione dello schema nel metodo load con cleanup. Riproduci il fallimento usando uno schema di test diverso da public e verifica che cleanup non richieda più la proprietà dello schema public.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
php, postgresql
Ambito
databases
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.