Skip to content

Error connecting to PostgreSQL 8.3.4 database #1

@nescafe2002

Description

@nescafe2002

Test Connection: Connection successful

On expanding data connection or running query bound to connection, the following error appears:

_NpgsqlException - 42601: syntax error at or near ""TableCatalog""_

Sniffed problematic SQL query:

SELECT table_catalog "TableCatalog", table_name "TableName" 
FROM information_schema.tables 
WHERE table_type='BASE TABLE' AND table_schema='public'

Suggested fix:

Change this line:

SELECT table_catalog "TableCatalog", table_name "TableName"

Into:

SELECT table_catalog AS "TableCatalog", table_name AS "TableName"

Probably more files could be 'fixed' this way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions