Skip to content

View is not a Table (postgresql) #73

@Erwane

Description

@Erwane

Hi,
My project use Postgis and 2 views are created.
The init() method create table but try to add triggers on views.

RuntimeException: SQLSTATE[42809]: Wrong object type: 7 ERROR:  "geography_columns" is not a table
CONTEXT:  SQL statement "TRUNCATE TABLE "geography_columns" RESTART IDENTITY CASCADE"
PL/pgSQL function truncatedirtytables() line 11 at EXECUTE
Query: CALL TruncateDirtyTables();
/var/www/app/vendor/vierge-noire/cakephp-test-suite-light/src/Sniffer/PostgresTriggerBasedTableSniffer.php:47
/var/www/app/vendor/vierge-noire/cakephp-test-suite-light/src/Fixture/TriggerStrategy.php:65
/var/www/app/vendor/vierge-noire/cakephp-test-suite-light/src/Fixture/TriggerStrategy.php:44

In BaseTableSniffer::fetchAllTables() using listTablesWithoutViews instead of listTables works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions