Skip to content

Conversation

@aj-fuentes
Copy link
Contributor

One literal column was present which caused issues with uppercase named
columns. Redo the quoting with better tools from psycopg2.

@robodoo
Copy link
Contributor

robodoo commented Dec 1, 2023

@aj-fuentes aj-fuentes requested review from a team and jjmaksoud December 4, 2023 07:52
@aj-fuentes
Copy link
Contributor Author

upgradeci retry with always website* in versions 13.0 14.0 15.0

@cawo-odoo
Copy link
Contributor

LGTM by itself.

What about the other uses of quote_ident in this file? E.g. I find it counter-intuitive that

def get_html_fields(cr):
returns table unquoted and column quoted, while other "getters" in the utils (like table_of_model) do not quote at all. We should consistently quote identifiers at time of use in a query, otherwise it will get confusing and hard to use.
Just my 2¢.

@aj-fuentes
Copy link
Contributor Author

We should consistently quote identifiers at time of use in a query, otherwise it will get confusing and hard to use.

I agree, we'd be moving it to a better standard way in subsequent patches when needed. I don't want to do a big refactoring just for that.

@KangOl
Copy link
Contributor

KangOl commented Dec 4, 2023

upgradeci retry with always only base mass_mailing test_themes theme_common web web_editor website website_blog website_event website_mass_mailing website_sale in 14.0 15.0 16.0 17.0

@aj-fuentes aj-fuentes force-pushed the master-fix_quote_query-afu branch from 13289de to 023ab70 Compare December 4, 2023 11:35
One literal column was present which caused issues with uppercase named
columns. Redo the quoting with better tools from psycopg2.

upg-1180733
@aj-fuentes aj-fuentes force-pushed the master-fix_quote_query-afu branch from 023ab70 to 32ed137 Compare December 4, 2023 12:34
@aj-fuentes
Copy link
Contributor Author

@KangOl this is finally correct. Also good in the test with the upgrade request.

@KangOl
Copy link
Contributor

KangOl commented Dec 5, 2023

upgradeci retry

@aj-fuentes
Copy link
Contributor Author

@KangOl good to go?

@KangOl
Copy link
Contributor

KangOl commented Dec 5, 2023

@robodoo r+

@robodoo robodoo closed this in 541c4a8 Dec 5, 2023
@robodoo robodoo added the 17.1 label Dec 5, 2023
@aj-fuentes aj-fuentes deleted the master-fix_quote_query-afu branch July 9, 2024 06:58
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