-
Notifications
You must be signed in to change notification settings - Fork 49
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
Schema update fails if table-name is a reserved word #19
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The schema update fails if the table-name is a reserved word, because the table-name will be quoted by Doctrine and the select-query which returns the column-information fails. So Doctrine thinks he has to change the "geometry_type" (from a empty string to the configured value), which is not supported (see #5).
The table-name was in my case
user
, which will be converted to"user"
, which results in the following query:doctrine-postgis/src/Schema/SchemaManager.php
Line 93 in c8e19a5
I'm new to Doctrine and I have no idea how to safely unquote the table-name, Is
trim($table, '"');
sufficient, or is there a better way?I'm using PostgreSql 9.5 and the most current Doctrine-version.
The text was updated successfully, but these errors were encountered: