Adria Navarro
|
3ea8e240e4
|
Fix one-to-many
|
2024-10-16 14:05:48 +02:00 |
Adria Navarro
|
960fa33559
|
Merge branch 'fix/multiple-relationships-same-table' into chore/negated-join-filters
|
2024-10-16 13:34:19 +02:00 |
Adria Navarro
|
b01564c934
|
Fix multiple relations to same table for external
|
2024-10-16 10:21:17 +02:00 |
Adria Navarro
|
8a6dbef249
|
Fix sqs
|
2024-10-15 18:50:58 +02:00 |
Adria Navarro
|
57da952f69
|
Fix "parenthesis"
|
2024-10-15 11:34:35 +02:00 |
Adria Navarro
|
76d0107d4d
|
Handle empty relationships
|
2024-10-15 10:10:15 +02:00 |
Adria Navarro
|
7ea2c187a7
|
Simplify
|
2024-10-14 16:17:24 +02:00 |
Adria Navarro
|
cf089eff26
|
Fix ors
|
2024-10-14 10:40:08 +02:00 |
Adria Navarro
|
2311f8aa50
|
Don't break or conditions on nested joins
|
2024-10-14 10:40:08 +02:00 |
Sam Rose
|
964f8222ba
|
Allow sorting by calculation fields.
|
2024-10-10 17:10:07 +01:00 |
mike12345567
|
00048a2d3e
|
Addressing PR comments.
|
2024-10-09 17:04:27 +01:00 |
mike12345567
|
d62d5b7043
|
Fixing an issue with removing relationships from the many side of a table in SQL, this was not correctly updating the other table.
|
2024-10-09 15:09:38 +01:00 |
Sam Rose
|
50c307df4d
|
Add more view calculation tests, and implement count distinct.
|
2024-10-02 16:49:14 +01:00 |
Sam Rose
|
4dd6afd435
|
Symbolise the special __bb_total count field name.
|
2024-10-02 09:57:18 +01:00 |
Sam Rose
|
7b9af81fd5
|
Clean up params and isSqs
|
2024-10-02 09:44:20 +01:00 |
Sam Rose
|
ddd229062c
|
Rename total field when doing row counts.
|
2024-10-02 09:39:54 +01:00 |
Sam Rose
|
08f1c4dadc
|
Update packages/backend-core/src/sql/sql.ts
Co-authored-by: Adria Navarro <adria@budibase.com>
|
2024-10-02 09:35:15 +01:00 |
Sam Rose
|
7cee1509aa
|
Fix sqlAlias.spec.ts
|
2024-10-01 16:17:11 +01:00 |
Sam Rose
|
addd54a8e8
|
Fix generic-sql.spec.ts
|
2024-10-01 15:39:33 +01:00 |
Sam Rose
|
ae4f7ae4b4
|
Implement group by and add a test for it.
|
2024-10-01 15:04:01 +01:00 |
Sam Rose
|
987a24fabc
|
wip
|
2024-10-01 11:48:14 +01:00 |
Sam Rose
|
c4c524c6ff
|
viewV2.spec.ts passsing in full
|
2024-09-26 15:22:10 +01:00 |
Sam Rose
|
0fee7dfd4f
|
Merge branch 'master' of github.com:budibase/budibase into view-calculation-sql
|
2024-09-24 15:07:08 +01:00 |
mike12345567
|
c643c82654
|
Fix for SQL server.
|
2024-09-24 13:44:26 +01:00 |
Sam Rose
|
51774b3434
|
Working on plumbing 'source' all the way through our code.
|
2024-09-24 12:30:45 +01:00 |
mike12345567
|
464f973f12
|
Adding a separation for MariaDB and MySQL, mariaDB is the core of the problem, this solves for it by separating them and allowing us to use the special json_arrayagg for mariaDB, but use a correlated sub-query for MySQL.
|
2024-09-24 12:01:47 +01:00 |
mike12345567
|
676058bbbd
|
Updates to limit the response of JSON_ARRAYAGG in mysql/mariaDB - rather than using a limited sub-query which is dis-allowed in MySQL/MariaDB due to the nature of the correlated sub-query.
|
2024-09-23 17:16:34 +01:00 |
mike12345567
|
b0252469ed
|
Removing wrap for MySQL.
|
2024-09-23 12:33:25 +01:00 |
mike12345567
|
efdfbe7229
|
Fixing an issue that was stopping the limit from being applied to MySQL, it needs to wrap the query the same as all other DBs, however it needs to apply the where statement in a slightly different manner.
|
2024-09-20 17:58:31 +01:00 |
Sam Rose
|
9588192a52
|
Merge master.
|
2024-09-20 11:46:58 +01:00 |
mike12345567
|
63c0d9afb8
|
Sorting the field list to make sure we have the important fields at the top (if known).
|
2024-09-16 18:27:53 +01:00 |
mike12345567
|
68a710699d
|
Getting external DBs to correctly handle when too many fields.
|
2024-09-16 18:09:01 +01:00 |
mike12345567
|
9d6fc54a99
|
Adding function parameter limit control for different SQL DBs, every DB has different limits with Postgres being the lowest at 100. We need to fix for wide tables which are related.
|
2024-09-16 16:12:07 +01:00 |
mike12345567
|
c9b64e3591
|
SQLite uses CTE with SQS 2.1.1.
|
2024-09-11 13:41:54 +01:00 |
mike12345567
|
05de673781
|
Merge branch 'master' of github.com:Budibase/budibase into aggregate-all-sql-dbs
|
2024-09-11 13:25:25 +01:00 |
mike12345567
|
f63c95e44c
|
Adding SQL_MAX_RELATED_ROWS environment variable, defaults to 500, allows for 500 rows per relationship.
|
2024-09-10 13:59:21 +01:00 |
mike12345567
|
157e75b9a6
|
Using a CTE for the main query, then adding the JSON aggregation on afterwards - fixing issue with offset pagination applying the JSON aggregation to all rows before hand.
|
2024-09-06 19:34:02 +01:00 |
mike12345567
|
76273ff860
|
PR comments.
|
2024-09-06 16:47:43 +01:00 |
mike12345567
|
f7d9b8a9b3
|
Updating select statement generation.
|
2024-09-05 19:04:45 +01:00 |
mike12345567
|
e30469ce16
|
Getting MariaDB to work again.
|
2024-09-04 18:14:24 +01:00 |
mike12345567
|
637ac55a9f
|
Slight refactor.
|
2024-09-04 17:42:30 +01:00 |
Sam Rose
|
cda778598d
|
Fix some MSSQL test cases.
|
2024-09-04 16:41:36 +01:00 |
Sam Rose
|
e90aff959f
|
Resolve merge conflicts.
|
2024-09-04 16:24:19 +01:00 |
Sam Rose
|
12db64513b
|
Revert to testing against mssql 2017, attempt to get relationship aggreggation working.
|
2024-09-04 16:21:32 +01:00 |
mike12345567
|
79de7b2c45
|
Updating to use a sub-query with a wrapper to get the JSON aggregations.
|
2024-09-04 16:17:25 +01:00 |
mike12345567
|
fed82dffaf
|
Linting.
|
2024-09-04 13:11:03 +01:00 |
Sam Rose
|
015ef56110
|
wip
|
2024-09-04 09:29:05 +01:00 |
mike12345567
|
b29a4e2b37
|
Work to support all SQL DBs across the board using the aggregation method.
|
2024-09-03 18:24:50 +01:00 |
mike12345567
|
ac7838f80d
|
Fixing an issue with inconsistent relationship order.
|
2024-09-03 12:09:33 +01:00 |
mike12345567
|
a9b1a22403
|
Some improvements to get SQS tests passing.
|
2024-08-29 18:56:14 +01:00 |