summaryrefslogtreecommitdiffstats
path: root/tests/lib/DB
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Add temporary test for migrating int to stringJulius Härtl2020-12-081-0/+49
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* allow selecting multiple columns with SELECT DISTINCTRobin Appelman2020-11-161-0/+38
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix unique key in test tableJoas Schilling2020-11-101-4/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Skip the insertIfNotExists() tests on Oracle because it doesn't work with clobJoas Schilling2020-11-101-0/+20
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Easier debugging and spell fixJoas Schilling2020-11-101-6/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use a different column for the primary key as we can not insert it on oracleJoas Schilling2020-11-102-12/+36
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add github action for oci8Julius Härtl2020-11-101-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Don't leave cursors open when tests failJoas Schilling2020-11-094-20/+92
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-123-5/+5
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove deprecated test of internal attributes via assertAttributeEqualsMorris Jobke2020-07-231-2/+2
| | | | | | | | See https://github.com/sebastianbergmann/phpunit/issues/3339#issuecomment-428843322 It is seen as bad practice to test internal stuff of objects instead of the actual input and output of mathod calls. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Replace TYPE with TYPESDaniel Kesselberg2020-06-301-3/+3
| | | | | | As TYPE::* is deprecated. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update share type constant usageJoas Schilling2020-06-241-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove dropped " ON " when join has no conditionJoas Schilling2020-06-081-6/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-109-16/+6
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-093-10/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-264-66/+66
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20172 from nextcloud/techdebt/phpunit-short-returnChristoph Wurst2020-03-261-2/+2
|\ | | | | Use the shorter phpunit syntax for mocked return values
| * Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-2/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use lowercase true, false and null constantsChristoph Wurst2020-03-251-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Pick a shorter name for the transfer ownership tableJoas Schilling2019-12-101-11/+11
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #17833 from nextcloud/propagator-no-negative-sizesRoeland Jago Douma2019-12-041-0/+20
|\ | | | | dont set folder size to negative values during propagation
| * add LEAST and GREATER to db function builderRobin Appelman2019-11-261-0/+20
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | TO REVERT LATER: disable decimaltest from LegacyDBTestRoeland Jago Douma2019-11-271-3/+3
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Mode to modern phpunitRoeland Jago Douma2019-11-274-46/+46
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Make phpunit8 compatibleRoeland Jago Douma2019-11-2714-24/+24
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-222-4/+3
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* add MAX and MIN to functionbuilderRobin Appelman2019-09-061-0/+78
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update the tests to the comparison logicJoas Schilling2018-12-171-15/+95
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #11942 from nextcloud/techdebt/noid/use-count-functionMorris Jobke2018-11-121-1/+1
|\ | | | | Use the defined func()->count() instead of manual counting
| * Use the defined func()->count() instead of manual countingJoas Schilling2018-11-081-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Exception is not thrown anymoreMorris Jobke2018-11-121-2/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add test that unique constraint is workingDaniel Kesselberg2018-11-061-0/+13
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Fix testsRoeland Jago Douma2018-08-081-2/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Ignore custom prefixes which are longerJoas Schilling2018-07-271-10/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix calculation of default nameJoas Schilling2018-07-271-3/+60
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>