aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/DB
Commit message (Collapse)AuthorAgeFilesLines
* fix(db): Prevent two connections for single node databasesChristoph Wurst2024-05-281-0/+101
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix(tests): Make PostgreSQL unit tests less flacky by orderingJoas Schilling2024-01-251-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* lazy AppConfigMaxence Lange2024-01-151-0/+1
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* tests(DB): Add test for date time comparisons in query builderJulius Härtl2023-12-291-0/+86
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix(sqlite): Remove some old SQLite cheatsJoas Schilling2023-10-061-4/+0
| | | | | | | - Doctrine correctly forces integer for autoincrement by now - Doctrine correctly maintains integer types by now Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(mysql): Remove custom MySQL workaround from 2015Joas Schilling2023-10-061-8/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(postgres): Remove old Postgres 9.4 workaroundJoas Schilling2023-10-061-4/+0
| | | | | | | | Postgres 10 is the minimum in the meantime and doctrine/dbal fixed this in 2.6.0 already ref https://github.com/doctrine/dbal/pull/2614 Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(tests): Adjust unit tests to outline the schema is checked twice nowJoas Schilling2023-07-211-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Adapt tests to config value typingCôme Chilliet2023-04-051-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* tests(db): Add test case to ensure column comments workFerdinand Thiessen2023-02-281-0/+24
| | | | Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* tests(oci): Test where statement on longtext columnJulius Härtl2023-01-311-0/+18
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> test: try with just passing the type to eq which should also cast Signed-off-by: Julius Härtl <jus@bitgrid.net>
* composer run cs:fixCôme Chilliet2023-01-201-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix dynamic properties and other problems in tests for PHP 8.2Côme Chilliet2022-11-141-1/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Migrate Migrator::executeSql to OCP\EventDispatcher\EventCôme Chilliet2022-08-251-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Revert "add case statement to sql function builder"Robin Appelman2022-08-161-17/+0
| | | | | | This reverts commit 2a68819a67045d87a369a8a6413f153b3b2bea5f. Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove some more at matchers in tests/libCôme Chilliet2022-06-201-6/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* add case statement to sql function builderRobin Appelman2022-06-021-0/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add a metadata service to store file metadataCarl Schwan2022-04-131-0/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #31679 from ↵Côme Chilliet2022-03-311-0/+40
|\ | | | | | | | | nextcloud/bugfix/noid/ensure-string-columns-to-be-maximum-of-4000 Ensure string column limit of 4.000 characters
| * Ensure string column limit of 4.000 charactersJoas Schilling2022-03-251-0/+40
| | | | | | | | | | | | https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/datatype-limits.html#GUID-963C79C9-9303-49FE-8F2D-C8AAF04D3095 Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #31609 from nextcloud/fix/migrate-away-from-iloggerCôme Chilliet2022-03-291-16/+16
|\ \ | | | | | | Migrate from ILogger to LoggerInterface in lib/private
| * | Migrate from ILogger to LoggerInterface where needed in the testsCôme Chilliet2022-03-241-16/+16
| |/ | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Avoid select with no FROM clause for Oracle in testsCôme Chilliet2022-03-241-0/+4
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Add octetLength and charLength to function builder, and testsCôme Chilliet2022-03-241-0/+46
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Test disabled for now due to multiple reasonsJoas Schilling2022-03-221-0/+1
| | | | | | see https://github.com/nextcloud/server/pull/31580#issuecomment-1069182234 for details Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a test for primary keysJoas Schilling2022-03-101-1/+43
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix column size to work with Oracle. Add unit testsVitor Mattos2022-01-211-2/+9
| | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* Prevent query error when use subqueryVitor Mattos2022-01-211-1/+8
| | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* Merge pull request #30508 from nextcloud/fix/psaml-binCarl Schwan2022-01-131-2/+1
|\ | | | | Fix psalm not running
| * Check style updateCarl Schwan2022-01-131-2/+1
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Unit testsVitor Mattos2022-01-071-6/+54
|/ | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* Add a test with integerJoas Schilling2022-01-041-4/+90
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Test with real dataJoas Schilling2022-01-031-7/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add unit testVitor Mattos2022-01-031-7/+33
| | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* Add unit test and orderBy parameterVitor Mattos2022-01-031-0/+26
| | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* Bump doctrine/dbal from 3.0.0 to 3.1.3Christoph Wurst2021-10-221-7/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add a unit test to check for casting a IQueryFunctionJoas Schilling2021-07-071-0/+34
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Integer 0 is not stored as Null and therefor worksJoas Schilling2021-04-161-1/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Test that oracle throws on EmptyValues in a NotNull columnsJoas Schilling2021-04-161-14/+28
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Run migrator tests on OCIJoas Schilling2021-04-161-3/+33
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Rename the method to match what it doesJoas Schilling2021-03-311-22/+22
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't allow Notnull for boolean columnsJoas Schilling2021-03-311-0/+41
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Cleanup unneeded code around database.xmlMorris Jobke2021-03-2417-2823/+29
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Skip db migration simulation for core schema changesJulius Härtl2021-03-171-53/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-183-24/+24
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add test for dbal exception wrappingDaniel Kesselberg2021-02-031-0/+87
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #25036 from nextcloud/fix/noid/limitied-allowed-items-db-in_2blizzz2021-01-141-6/+82
|\ | | | | respect DB restrictions on number of arguments in statements and queries
| * DB: warn on parameter number constraintsArthur Schiwon2021-01-111-6/+82
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Only rollback when not MySQLJoas Schilling2021-01-111-2/+10
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-0812-62/+58
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>