Commit Graph

4976 Commits

Author SHA1 Message Date
Mark Struberg c1ae373a0f OPENJPA-2713 add java8 time api for SQLServer 2019-02-14 15:21:53 +01:00
Mark Struberg 0e4ec5b392 OPENJPA-2733 fix param index.
Also handle the case if the same Param gets registered multiple times.
This eg happens in case of a Criteria Subquery having the same parameter name.
2019-02-14 15:06:50 +01:00
Mark Struberg 80736f6e9d OPENJPA-2733 subquery parameters are incorrectly assigned
patch submitted by Pawel Veselov - thanks!
2019-02-14 14:29:11 +01:00
Mark Struberg 0d9645781e add -ea to have all debug options uniform 2019-02-14 10:03:35 +01:00
Mark Struberg b484ee1f22 add missing delegate method for Java8 support 2019-02-14 10:03:04 +01:00
Mark Struberg b714dbae18 use correct name for the db 2019-02-07 09:56:15 +01:00
Mark Struberg fa6ce77004 OPENJPA-2773 set dbcp defaults to align with commons dbcp
Especially the maxIdle=0 was problematic.
It effectively disables the whole pooling, which is counter productive.
2019-02-07 09:56:15 +01:00
Mark Struberg de316bc018 OPENJPA-2753 add profile for MSSqlServer docker 2019-02-07 09:32:31 +01:00
Mark Struberg f27a0b9124 add debugging instruction with hsqldb 2019-02-06 10:23:22 +01:00
Mark Struberg 238449e155 hsqldb seems to have a bug with concurrent access to the underlying DB. 2019-02-06 10:23:22 +01:00
Mark Struberg 037a2dc4c0 OPENJPA-2775 fix hsql metadata handling 2019-02-06 10:23:22 +01:00
Maxim Solodovnik e4197b0c42 [OPENJPA-2748] commons-collection4 is updated to release version 2019-02-05 11:06:35 +07:00
Mark Struberg 6e8c4d987f fix broken unit test. Illegal table 'ROLES'
The ROLES table exists by default in some datbases.
So it's probably better to not use it as table name in our unit test.
2019-02-02 13:49:27 +01:00
Mark Struberg 11863ed932 OPENJPA-2772 update list of h2 resorved words 2019-02-02 13:48:22 +01:00
Mark Struberg 4b88b80dc0 remove obsolete sql tracing 2019-02-02 13:47:53 +01:00
Mark Struberg af39516fc8 OPENJPA-2713 add java8 time support for h2 2019-02-02 13:04:15 +01:00
Mark Struberg 25cde67172 test cleanup
* remove unused methods
* fix formatting
* delete entries owt we will randomly blow up
2019-02-02 12:08:57 +01:00
Mark Struberg 17ef63bbe4 Those 2 tests only work when running on Derby.
They hardcoded slurp in some derby driver via simple-ldap.
Thus they only work if the derby profile is activated.
In any other case those tests blow up with a CNFE.
2019-02-02 12:06:57 +01:00
Mark Struberg 43aa42ccb5 OPENJPA-2771 fix h2 'unlimited' LIMIT case
With h2 one should omit the LIMIT section to get all results.
Our old LIMIT 0 did effectively prune the whole result list to zero entries.
2019-02-02 12:02:58 +01:00
Mark Struberg 0cd523b1f5 move back to h2-1.4.196 due to a Time bug in h2 197 2019-02-01 14:58:23 +01:00
Mark Struberg ad4ed02728 OPENJPA-2713 fix h2 2019-01-30 22:33:08 +01:00
Mark Struberg e82d1ec2fb OPENJPA-2713 remove left over in PostgresDictionary 2019-01-29 22:22:15 +01:00
Mark Struberg be62c5a123 OPENJPA-2713 add LocalDate support for Oracle DB
Oracle does still not support native LocalDate, etc in their JDBC driver.
So we have to treat it like the old datatypes.
2019-01-29 13:02:05 +01:00
Mark Struberg e908a9c293 formatting only 2019-01-28 13:01:16 +01:00
Mark Struberg fffc74f0a7 OPENJPA-2713 improve MariaDB Dictionary
Seems like MariaDB does still have quite a few problems in their JDBC driver.
I at least tried to iron out new functionality.
2019-01-28 13:00:05 +01:00
Mark Struberg 9f0631bbf4 switch back to old mariadb connectorj due to a bug
MariaDB connectorj-2.3.0 has a bug with ESCAPE handling.
This leads to many tests blow up with Exceptions.
The respective bug is https://jira.mariadb.org/browse/CONJ-664
2.3.1 should be safe again, but is not yet out.
Thus switching back to 2.2.0.
2019-01-26 21:55:30 +01:00
Mark Struberg 362474e5c9 OPENJPA-2713 add java8 time support for MySQL and MariaDB 2019-01-25 21:37:16 +01:00
Mark Struberg 5079209823 Merge branch 'OPENJPA-2713' 2019-01-25 17:13:55 +01:00
Mark Struberg 6d2544f390 OPENJPA-2713 properly handle WITH TIME ZONE if supported by db
This includes handling the  new java.sql.Types.TIME_WITH_ZONE
and DATE_WITH_ZONE.
2019-01-25 16:42:15 +01:00
Romain Manni-Bucau 9e222652df OPENJPA-2770 ensure equal(xxx, literal(boolean)) works in criteria builder 2019-01-23 10:21:53 +01:00
Mark Struberg dbfb360e85 OPENJPA-2713 add OffsetTime support
Works, but something is a bit fishy still.
2019-01-22 22:07:32 +01:00
Mark Struberg e57fd518b3 OPENJPA-2713 implement native java8 types
Since some DBs (e.g. PostgreSQL) do support LocalDate, etc
in their JDBC drivers, it's probably the best to support it
on a way deeper level.
2019-01-20 23:51:10 +01:00
Mark Struberg 61b48040db improve doc formatting 2019-01-20 14:49:52 +01:00
Mark Struberg 89335fd48c OPENJPA-2713 add support for java.time.LocalDate
plus some cleanup
2019-01-20 14:49:20 +01:00
Mark Struberg 03ebe4fdd0 force cleaning of the table to have re-runnable tests 2019-01-15 09:24:19 +01:00
Mark Struberg 40d19ebc6c OPENJPA-2768 delete xmlstore test db between runs.
This did lead to errors when running the tests multiple times.
2019-01-14 09:02:44 +01:00
Mark Struberg aae0a95f6c OPENJPA-2761 properly handle javax.sql.Types.SQLXML 2019-01-10 13:29:49 +01:00
Mark Struberg d35ea4bb06 OPENJPA-2753 use an oracle12_xe docker container
It seems Oracle11 had really a problem with XMLType handling internally.
It did seemingly random return a 0x00 at position 4000 of a xmltype.
This got fixed in Oracle12
2019-01-10 13:27:42 +01:00
Mark Struberg c1d9fd3c62 OPENJPA-2768 fix XMLStore xml handling
the SAXParser handler didn't properly distinguish between 'extent' and 'element'
2019-01-10 13:25:38 +01:00
Mark Struberg 08acaa4f55 OPENJPA-2753 add dbcp settings to Oracle Docker profile
This will fix the bug with the massive parallel test
2019-01-07 23:00:36 +01:00
Mark Struberg bb6bad0702 OPENJPA-2753 add a profile for Oracle as Docker image
-Ptest-oracle-docker
as new profile to start Oracle 11_XE
2019-01-06 23:43:41 +01:00
Mark Struberg a53744a744 fix missing space in readme 2019-01-03 21:28:04 +01:00
Mark Struberg d25ed12902 OPENJPA-2753 improve postgresql docker setup 2019-01-03 00:17:03 +01:00
Mark Struberg f7c89885e3 add missing port to postgresql config 2019-01-03 00:14:57 +01:00
Mark Struberg 6afab6486a OPENJPA-2754 re-enable dbcp2 auto detection 2019-01-03 00:13:59 +01:00
Mark Struberg d3790f70c7 OPENJPA-2754 also move postgres config to dbcp2 maxTotal
maxActive doesn't exist anymore. It is now maxTotal.
2019-01-02 13:18:52 +01:00
Mark Struberg fa96d6df02 OPENJPA-2754 implement a workaround for the bug in commons-pool2
By setting maxIdle to > 0 we can work around the bug and
even pass your test with the old versions.
2019-01-02 11:17:38 +01:00
Mark Struberg fe2709aab7 adding netbeans config files to ignore rules 2019-01-02 10:34:45 +01:00
Mark Struberg 260042ba51 OPENJPA-2764 fix tests with random behaviour
The behaviour was random due to the undefined order in which
real databases return data.
2019-01-02 09:58:03 +01:00
Mark Struberg 9cdd90d041 improve our initial README
It now contains more information about how to start hacking.
2019-01-02 09:33:28 +01:00