Rob Bygrave
8a4024ecfc
FIX for filterMany with raw expression with single SQL query
...
Fix for the case where the filterMany is not executed on a separate
query but instead part of the origin query.
The fix is to use the appropriate DeployParser and also fix the path
alias like ${} -> ${contacts}
2023-08-19 13:54:38 +12:00
Rob Bygrave
9756c9133e
Improve existing test for filterMany using raw with separate SQL query for filterMany
2023-08-19 13:46:45 +12:00
Rob Bygrave
0e9fe6a096
Remove extra space added to the generated SQL via the LIKE expression
2023-08-19 09:29:19 +12:00
Rob Bygrave
eb0812df16
Bump to next snapshot
2023-08-17 23:26:26 +12:00
Rob Bygrave
9ccaa824e0
Version 13.21.0
2023-08-17 22:51:00 +12:00
Rob Bygrave and GitHub
9331050a43
Merge pull request #3166 from ebean-orm/feature/InTuples-Literal-skipCache
...
InTuples literal mode - don't cache ebean compiled query plan
2023-08-17 15:34:17 +12:00
robin.bygrave
9bcd189730
Test TestInTuplesWithLocalDate does not support SQLServer and DB2 yet
2023-08-17 15:24:28 +12:00
Rob Bygrave and GitHub
428365ceb9
Merge pull request #3164 from FOCONIS/bugfix/drop_foreign_key_without_index
...
BUG: Include drop for foreign keys without index when dropping table
2023-08-17 15:12:19 +12:00
robin.bygrave
76c889c6d9
InTuples literal mode - don't cache ebean compiled query plan
...
- Don't cache ebean compiled query plan when InTuples goes into literal mode
- Postgres maxInBinding = 32_000;
- SQLite maxInBinding = 800;
- Note that not caching the compiled query plan means that metrics visitor isn't
going to see it, we lose collection of that query execution metric. We might
need a plan to fix this later.
2023-08-17 15:08:16 +12:00
Rob Bygrave
9d7754b92d
Add support for literal mode for InTuples with lots of entries
...
So as to not exceed the limit on bind values, the InTuples expression can
go into literal mode where it uses literal values for supported types -
Numbers, Strings, UUID, and LocalDate.
2023-08-17 00:33:56 +12:00
Jonas Pöhler
7dae937491
Generate working migration
2023-08-16 12:00:23 +02:00
Jonas Pöhler
b0d8fa0286
Generate failing migration
2023-08-16 11:58:57 +02:00
Jonas Pöhler
83c85adbde
ADD: testcase
2023-08-16 11:57:34 +02:00
Rob Bygrave
ec0c00eb72
Add Query alsoIf() to conditionally apply changes to a query
2023-08-15 21:56:50 +12:00
Rob Bygrave
1598b40c36
Followup for #3133 - "Embedded id expansion on parentIds" for SQLServer and DB2
2023-08-14 23:00:41 +12:00
Rob Bygrave and GitHub
b8e164e04c
Merge pull request #3148 from FOCONIS/fix-recursive-batch-flush
...
FIX: Recursive batch flush can save beans in wrong order
2023-08-14 13:55:50 +12:00
Rob Bygrave and GitHub
9097466a7b
Merge pull request #3145 from FOCONIS/m2m-where-formula
...
FIX: Query on formula m2o-property uses wrong alias:
2023-08-14 13:55:21 +12:00
Rob Bygrave and GitHub
99604d8ec3
Merge pull request #3155 from ebean-orm/feature/3133-IdClass-match-on-name
...
#3133 - For IdClass match on property name
2023-08-14 13:53:58 +12:00
Rob Bygrave
95d37fc3dc
Temporary ignore test TestCompositeForeignKey for DB2 and SQLServer
2023-08-14 13:41:34 +12:00
Rob Bygrave
76d85adc98
Fix tests for #3133 MySql and SQLServer which require column ordering of PK and FK to match
2023-08-14 11:14:43 +12:00
Rob Bygrave
2f233db465
#3133 - For IdClass match on property name
2023-08-10 23:22:57 +12:00
Rob Bygrave
1ca73ca6aa
Test only - Update test IdClass CEPProductCategoryId to match expectations
2023-08-10 23:17:47 +12:00
Rob Bygrave
b5ac31838c
#3134 Fix for - String cannot be cast to class io.ebean.bean.EntityBean" when deleting entities that use cascade = [CascadeType.ALL] with composite keys
2023-08-10 21:11:58 +12:00
Rob Bygrave
e3e9412eea
#3134 Failing test - String cannot be cast to class io.ebean.bean.EntityBean" when deleting entities that use cascade = [CascadeType.ALL] with composite keys
2023-08-10 20:50:40 +12:00
Roland Praml and Roland Praml
d3427876b7
FIX: Recursive batch flush can save dependant beans in wrong order
2023-08-08 16:59:46 +02:00
Roland Praml
5720ee65b3
Ignored Postgres Platform
2023-08-08 14:02:49 +02:00
Roland Praml
7f441ce72e
FIX: M2M Where Formula joins
2023-08-08 14:02:34 +02:00
Rob Bygrave and GitHub
42a64e715d
Merge pull request #3138 from ebean-orm/feature/postgres-queryplan-capture-buffers
...
[Postgres] Include buffers in Postgres explain - explain (analyze, buffers)
2023-07-18 14:35:24 +12:00
robin.bygrave
12a3a180f4
[Postgres] Include buffers in Postgres explain - explain (analyze, buffers)
2023-07-18 13:52:21 +12:00
Rob Bygrave
1e860112e6
Modify ebean-test H2Database setup to default KEY,VALUE as non-keywords
...
H2Database 2.x changed KEY and VALUE to be deemed keywords for SQL compliance. This is actually a bit of a pain as all the other databases we test allow KEY and VALUE as column names.
This changes the setup for H2Database to treat KEY and VALUE as non keywords as before and be more consistent with the other databases.
2023-07-05 23:46:06 +12:00
Rob Bygrave
ffc21daaba
Bump to next snapshot
2023-07-05 23:28:49 +12:00
Rob Bygrave
d051bba71f
Version 13.20.1
2023-07-04 12:05:30 +12:00
Rob Bygrave and GitHub
bb02d74005
Merge pull request #3125 from ebean-orm/feature/query-usingMaster
...
Add query.usingMaster() to explicitly choose master data source
2023-07-03 22:48:47 +12:00
Rob Bygrave
79ed0a5f8e
#3126 - Incorrect complex indexes generation
2023-07-03 22:19:38 +12:00
Rob Bygrave
c4af1d9b23
Add query.usingMaster() to explicitly choose master data source
...
When we have a read replica with potential for replication lag, and config a read only DataSource to use that read replica, by default a query executed without a current transaction will use the read replica.
We specify usingMaster() when we explicitly want to execute a query and use the master data source.
2023-07-03 16:41:22 +12:00
Rob Bygrave
8209d9e229
Add SpiInTuples to hide more details from InTuples
2023-07-03 12:41:31 +12:00
Rob Bygrave
664120f369
Add InTuples expression for multi-column IN expression
2023-07-03 11:54:38 +12:00
Rob Bygrave
e952b555e0
Add InTuples expression for multi-column IN expression
2023-07-03 11:49:53 +12:00
Rob Bygrave
9a4b9d4bec
Bump to next snapshot version
2023-06-21 07:08:13 +12:00
Rob Bygrave
68a6e98292
Version 13.20.0
2023-06-20 20:35:04 +12:00
Rob Bygrave and GitHub
9fc1bec6a9
Merge pull request #3046 from FOCONIS/bugfix/lazy_loading_findEach_garbage_collection
...
Bugfix for NPE when lazyLoading in findEach due to Garbage Collection
2023-06-17 11:56:25 +12:00
Rob Bygrave and GitHub
f712635860
Merge pull request #3107 from FOCONIS/json-tests
...
DB specific length support in JSONs/Varchars/binary data
2023-06-17 11:38:46 +12:00
Jonas Pöhler
09f616aae8
ADD: testcase for showing an issue with deleting and re-adding many-to-many elements (size > 20)
...
(cherry picked from commit e6a4bc4e0c31bb35ab5a13c958c7c4b1f68ca037)
2023-06-16 16:16:53 +02:00
Roland Praml
994fb267ad
Merge branch 'master-upstream' into json-tests
2023-06-16 07:40:01 +02:00
robin.bygrave
c7f6c508a6
#3101 - Support JPA Indexes
2023-06-16 13:44:03 +12:00
Roland Praml
55477d4fab
No code change: Regenerated scripts
2023-06-15 08:07:51 +02:00
Roland Praml
77610672a9
Regenerated migration scripts again
2023-06-14 18:24:23 +02:00
Roland Praml
d8238735c1
Fix also DbTypeMapTest, which uses the new varbinary type
2023-06-14 18:19:17 +02:00
Roland Praml
6fe3ec9355
Migration scripts
2023-06-14 17:50:26 +02:00
Roland Praml
f5d0777b86
Added new test models with lengths
2023-06-14 17:17:31 +02:00