seitime-frappe/frappe/database
Aarol D'Souza cf69e4bed1
fix(postgres): misc query building fixes + CI (#34831)
* fix(query): check standard field definitions

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

* fix(postgres): fix order_by problem in pg

* fix(postgres): fix order_by in get_all for _test_connection_query

* fix: add check to a proper numeric fallback in _get_ifnull_fallback

* test(postgres): fix pg query used in assertion in test_permission_query

* fix(postgres): fix order_by in get_all for possible_link

* fix(postgres): fix order_by in get_all for set_modules

* fix(postgres): fix pg query count *

* fix(postgres): fix order_by in get_all for ask_pass_update

* fix(postgres): fix order_by statement in search_widget

* fix(postgres): fix order_by in get_list for get_stats

* test(postgres): normalize_sql for pg queries in test_arithmetic_operators_in_fields

* test(postgres): normalize_sql for pg queries in test_field_alias_in_group_by

* test(postgres): normalize_sql for pg queries in test_field_alias_permission_check

* test(postgres): fix order_by statement in get_all for test_db_keywords_as_fields

* test(postgres): fix order_by statement in get_all for test_prepare_select_args

* fix(treeview): use 0 instead of false to check since check field is an integer

* fix(postgres): fix order_by in get_all for sync_communication

* fix(postgres): fix order_by in get_all for get_references_across_doctypes_by_dynamic_link_field

* test(postgres): fix order_by in get_all for test_list_summary

* fix(postgres): fix order_by in get_all for email queries

* test(postgres): use order_by none and update assertion for postgres

* fix(postgres): use ILIKE to support case insensitive search in postgres

* test(test_query): update pg specific query assert to use ILIKE

* test(test_query): update test_nested_filters to use ilike instead for PG

* test(postgres): update pg query in assert to test updated qb query

* fix(search): update query to be db-agnostic

* test(postgres): normalize query for pg in test_build_match_conditions

* fix(postgres): suppress ORDER BY when SELECT DISTINCT in query for postgres specific behavior

* fix(postgres): suppress ORDER BY when GROUP BY is explicitly asked for pg specific behavior

* test(postgres): fix test behavior for pg ORDER BY drop when used with GROUP BY

* refactor: reducing noise in code by formatting code

* fix(query): use Star() to handle SQL wildcard character * correctly

* fix(postgres): display warning for ORDER BY fields that will be dropped

---------

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
Co-authored-by: Akhil Narang <me@akhilnarang.dev>
2025-12-05 10:30:49 +05:30
..
mariadb feat: Database SSL one way support (#33044) 2025-07-16 06:36:19 +00:00
postgres test(postgres): enable test_unique_index_on_alter for postgres (#34719) 2025-11-24 11:05:20 +05:30
sqlite feat(sqlite): Set 5s of busy_timeout 2025-10-28 13:54:53 +05:30
__init__.py refactor: Default to mysqlclient (#32987) 2025-06-18 06:04:24 +00:00
database.py fix(query): ensure backwards compatibility for sorting, filtering 2025-11-19 21:15:58 +05:30
db_manager.py refactor: use a database file directly, instead of an SQL file 2025-04-15 13:59:16 +05:30
operator_map.py fix(postgres): misc query building fixes + CI (#34831) 2025-12-05 10:30:49 +05:30
query.py fix(postgres): misc query building fixes + CI (#34831) 2025-12-05 10:30:49 +05:30
schema.py fix(schema): ensure int-int comparison (#34320) 2025-10-09 15:25:50 +05:30
sequence.py style: re-format with ruff 2024-02-05 18:53:33 +05:30
utils.py refactor: move drop index util to db utils file 2025-11-28 12:09:13 +05:30