Skip to content

ORM register_model does not work outside of "public" schema #48

@ChiliConSql

Description

@ChiliConSql

if I have a table in a schema other than public, Psycopg2 will check for the form 'schema.type' but postgres.py does not, so a model with typname 'type' will pass:
631 n = self.one( "SELECT count(*) FROM pg_type WHERE typname=%s"
632 , (typname,)
633 )
but it will fail in psycopg2.extras because of missing schema name.

Metadata

Metadata

Assignees

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