Commit Graph

177 Commits

Author SHA1 Message Date
Christian Beikov 981ccc813e Use try-with-resources to ensure scroll and stream tests close underlying resources 2023-08-16 09:14:03 +02:00
marko-bekhta 260af8efc4 HHH-17016 Cast to the correct MySQL dialect 2023-08-01 10:32:31 +02:00
Christian Beikov 949397f1bd HHH-16984 Disable use of arrays for batch and multi-loader on H2 2023-07-25 05:06:36 -04:00
Christian Beikov 5d63218deb Handle timeout exception for older H2 versions and igonre a test for Cockroach 2023-06-26 17:48:34 +02:00
Christian Beikov c286010ee7 HHH-16697 Fix auto type discovery for aggregate functions on Oracle 2023-06-13 20:59:37 +02:00
Christian Beikov 5fb312e558 HHH-15929 Handle the possibility of different JdbcMappings for the same column 2023-06-07 18:53:17 +02:00
Jarkko Hyöty d65249e540 HHH-16433 Fix forced follow on locking with order by 2023-05-19 11:32:20 +02:00
Christian Beikov 0980b78d5e HHH-16541 Don't report supportsSkipLocked() for Sybase 2023-05-17 16:22:56 +02:00
Christian Beikov b45edfc02d HHH-16541 Fix Sybase test issues and HSQLDB hanging 2023-05-17 11:40:31 +02:00
Christian Beikov a8c87cd284 HHH-16541 Don't consider uninitialized LazyTableGroup for follow-on locking emulation. Fix lock mode upgrade for follow-on locking 2023-05-16 12:55:04 -05:00
Christian Beikov 5f99dd3862 HHH-15726 Fix treat disjunction handling and improve pushdown 2023-05-15 12:21:39 +02:00
Gavin 167a14bcc7 fix rendering of in (...) lists
they are not function calls
2023-05-15 12:21:39 +02:00
Christian Beikov de37f328c2 HHH-16533 Fix issues with jConnect driver related to temporal literals. Also improve truncation and casting SQL 2023-05-02 11:16:30 +02:00
Marco Belladelli 0d381db8b8
Fix in-array predicate rendering for cockroachdb 2023-04-28 11:11:16 +02:00
Christian Beikov db3c73f302 HHH-16528 Revert SybaseDialect NameQualifierSupport to CATALOG only and fix ansinull option for jconnect 2023-04-28 10:31:10 +02:00
Christian Beikov f998bc80b5 HHH-15833 Disable named parameters for jConnect JDBC driver 2023-04-28 10:31:10 +02:00
Marco Belladelli 792a355865
HHH-16392 Add column qualifier support to Dialect 2023-04-28 10:11:49 +02:00
Christian Beikov 279b6ad31f HHH-16271 Fix generated keys issues with Sybase JConn and insert-select statements 2023-04-26 11:51:45 +02:00
Christian Beikov 6ddf354b98 Fix issues with nightly tests 2023-03-30 15:44:13 +02:00
Christian Beikov f3076c51b9 HHH-16404 SkipFirstLimitHandler calls insertAfterSelect with parameter in wrong order 2023-03-30 14:27:08 +02:00
Christian Beikov 785f6f094f HHH-16317 Don't use InstantAsTimestampWithTimeZoneJdbcType for PG-JDBC and MSSQL due to a bug 2023-03-23 12:00:32 +01:00
Christian Beikov e8a098ef1d HHH-16287 Consider hibernate.timezone.default_storage for OffsetTime typing and storage 2023-03-23 12:00:32 +01:00
Christian Beikov c54e156c14 HHH-16333 Handle converters properly in BasicPluralType 2023-03-22 17:27:48 +01:00
Marco Belladelli c21ec81e6d HHH-16320 Handle json columns with native ddl type on H2 2023-03-17 10:22:01 +01:00
Christian Beikov a122641539 HHH-16316 Move version specific dialects of unsupported versions to hibernate-community-dialects 2023-03-17 10:12:59 +01:00
Christian Beikov 0dc8b9eadd HHH-15766 Add query spec parenthesis also when order by is used within query group 2023-03-06 09:44:04 +01:00
Christian Beikov a316b041f1 HHH-16224 Refactor discovery of exact JDBC drivers, avoid static state in specialized types 2023-03-03 15:13:15 +01:00
Sanne Grinovero e170eb33d1 HHH-16228 Dialect instance might be wrapped when doing instanceof checks for capabilities
To properly support the idea of wrapping the Dialect, we need
to take this into account whenever an `instanceof` is used
to check for Dialect capabilities.
Also some code is casting to the expected Dialect.
2023-02-27 22:52:43 +00:00
Marco Belladelli 546d145d88 HHH-16185 Custom trunc/truncate implementation that handles both numeric and datetimes 2023-02-27 17:02:30 +01:00
Marco Belladelli 821e31b481 HHH-16185 Implement portable date_trunc function emulation and tests 2023-02-27 17:02:29 +01:00
Sanne Grinovero bce328cb29 HHH-16221 Improve extensibility of CockroachDB and PostgreSQL dialects 2023-02-23 14:57:11 +00:00
Gavin King 1ab190134e remove an obsolete constructor no longer called by Quarkus
and delete the stupid InformixDialectTestCase
2023-02-09 10:23:49 +01:00
Christian Beikov 7564551f6e HHH-15443 Allow JdbcType to wrap read and write expressions 2023-01-27 14:28:13 -06:00
Marco Belladelli 12c69c8528 Fix wrong version check in from dual for select only for MySQL 2023-01-24 09:05:04 +01:00
Gavin 8f29ae95c9 more javadoc for Dialect.getFractionalSecondPrecisionInNanos() 2023-01-14 15:14:04 +01:00
Gavin 56774f80d7 fix handling of typestamp arithmetic on Sybase
this was a total inconsistent mess that made no sense
2023-01-14 15:14:04 +01:00
Christian Beikov 80b638aeca Introduce getSingleJdbcMapping() and getJdbcMapping(int) to improve JdbcMappingContainer accesses 2023-01-13 09:04:15 +01:00
Marco Belladelli b5d58e69ae HHH-15928 Check distinct and sub-queries for SQLServer fetch / offset 2023-01-12 17:22:58 +01:00
Marco Belladelli 73da49626d Fix select without from in old versions of MySQL and MariaDB 2023-01-12 17:21:05 +01:00
Marco Belladelli ab86055565 HHH-15890 Fix shouldEmulateFetchClause method for DB2(i)SqlAstTranslator 2023-01-09 19:01:44 +01:00
Marco Belladelli 54402da721 HHH-15985 Custom trunc and round function for PostgreSQL and Cockroach 2023-01-06 15:48:09 +01:00
Gavin ab48dc9ba1 remove an email address I missed 2023-01-05 20:21:01 +01:00
Gavin 1fd45b607c thorough jdoc review and trivial changes to Dialect 2023-01-05 11:19:16 +01:00
Gavin ecf4d30c50 make Dialect implement TypeContributor and FunctionContributor
there is little *concrete* benefit to this change, and it's slightly break-y but:

- it removes a dependence on the @Incubating type QueryEngine from Dialect
- we eat our own dogfood, that is, use our own abstractions
- it appears that this was how it was *originally* intended to be
2023-01-04 19:38:24 +01:00
Gavin 196d7a1b5a resolve an issue with ArgumentsValidator and access to the MappingMetamodel
(ideally we should never access the MappingMetamodel from ArgumentsValidator)
2023-01-04 17:05:32 +01:00
Gavin e3ed3028c4 Revert "disable fragile test"
This reverts commit 2d3b787fc0.
2023-01-04 17:05:32 +01:00
Marco Belladelli 9369fbd597 Fix date_trunc function for DB2 10 2023-01-04 16:41:14 +01:00
Gavin 2d3b787fc0 disable fragile test 2023-01-03 21:06:49 +01:00
Gavin b7b5fb7559 avoid the use of TypeConfiguration.getServiceRegistry() 2023-01-03 21:06:49 +01:00
Gavin e8f899ffbc avoid the use of TypeConfiguration.getSessionFactory() which is not very typesafe
continue sorting out issues with lifecycle of SessionFactoryImpl and friends
2023-01-03 21:06:49 +01:00