Skip to content

Conversation

@jjmaksoud
Copy link
Contributor

The results of get_fk are quote_idented by default. Adding more quotes may result in sql syntax errors when the table names or column names are not standard.

affects upg-1172577

psycopg2.errors.SyntaxError: zero-length delimited identifier at or near """"
LINE 1: SELECT COUNT(*) FROM "groups_team" WHERE ""groupID"" = 79
                                                 ^

@jjmaksoud jjmaksoud requested review from a team and asno-odoo November 22, 2023 12:29
@robodoo
Copy link
Contributor

robodoo commented Nov 22, 2023

@jjmaksoud jjmaksoud force-pushed the master-records-groups-maji branch from 6d4f1da to 8e30c88 Compare November 22, 2023 12:30
The results of get_fk are quote_idented by default.
Adding more quotes may result in sql syntax errors
when the table names or column names are not standard.
@jjmaksoud jjmaksoud force-pushed the master-records-groups-maji branch from 8e30c88 to b14eec8 Compare November 22, 2023 13:25
@KangOl
Copy link
Contributor

KangOl commented Nov 22, 2023

@robodoo r+

robodoo pushed a commit that referenced this pull request Nov 22, 2023
The results of get_fk are quote_idented by default.
Adding more quotes may result in sql syntax errors
when the table names or column names are not standard.

closes #11

Signed-off-by: Christophe Simonis (chs) <chs@odoo.com>
@robodoo robodoo closed this in 48bb075 Nov 23, 2023
@robodoo robodoo added the 17.1 label Nov 23, 2023
@diagnoza diagnoza deleted the master-records-groups-maji branch November 23, 2023 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants