summaryrefslogtreecommitdiffstats
path: root/tests/lib/db
Commit message (Collapse)AuthorAgeFilesLines
* tests: Fix typos (found by codespell)Stefan Weil2016-04-061-1/+1
| | | | | | Fix also a small grammar issue. Signed-off-by: Stefan Weil <sw@weilnetz.de>
* Prevent certain DBs throwing exceptions on same-value updatesRobin McCorkell2016-03-151-6/+24
| | | | | | A PreconditionNotMetException must only be thrown if explicit preconditions are specified for setValues(), not if the value is merely the same as was already in the DB.
* Use IQueryBuilder::PARAM_* instead of \PDO::PARAM_*Joas Schilling2016-02-292-2/+3
|
* Move casting to IExpressionBuilderJoas Schilling2016-02-051-1/+1
|
* Fix Oracle comparisonsJoas Schilling2016-01-261-17/+39
|
* Add tests for clob comparisonsJoas Schilling2016-01-261-4/+64
|
* fix testRobin Appelman2016-01-181-4/+8
|
* Introduce IDBConnection::setValues()Robin McCorkell2016-01-181-6/+88
| | | | | setValues() attempts to insert a new row, or failing that, update an existing row. The ability to set preconditions is also available.
* Remove OC_DB::getConnectionMorris Jobke2016-01-074-4/+4
|
* Remove OC_DB::dropTableMorris Jobke2016-01-072-2/+2
|
* Fix the last insert id test by changing to an autoincrement tableJoas Schilling2015-12-091-5/+17
|
* Add a method to the get "to use" table and column nameJoas Schilling2015-12-081-1/+21
|
* Add select distinct to the query builderJoas Schilling2015-12-081-4/+32
|
* Allow getting the last insert id without much hassleJoas Schilling2015-12-081-0/+25
|
* Apply DB group annotation ...Thomas Müller2015-11-307-0/+45
|
* Add a method to select a field or value with aliasJoas Schilling2015-11-231-34/+116
|
* Allow `set('column', 'null')` to work like in DoctrineJoas Schilling2015-09-241-0/+4
|
* Automatically prefix table names with *PREFIX* unless specifiedJoas Schilling2015-08-101-34/+64
|
* Remove remainings of mssqlThomas Müller2015-07-292-8/+2
|
* Comment out LIMIT 0 case because of the mixed resultsJoas Schilling2015-07-211-1/+2
|
* Fix tests for setFirstResult and setMaxResults on oracleJoas Schilling2015-07-212-42/+64
|
* Set a limit until doctrine released a version that fixes SqliteJoas Schilling2015-07-211-0/+4
| | | | See https://github.com/doctrine/dbal/pull/782 for more info
* Correctly count the number of items (rowCount is Update/Insert/Delete only)Joas Schilling2015-07-211-13/+22
|
* Can not test the string, thanks oracle....Joas Schilling2015-07-211-10/+32
|
* Add unit tests and automatic quotingJoas Schilling2015-07-213-0/+1420
|
* Add unit test for migrator with different prefixVincent Petry2015-05-191-1/+28
|
* Merge pull request #12995 from owncloud/tbelau666-masterThomas Müller2015-01-091-1/+1
|\ | | | | Use Doctrines filter by table name
| * add proper prefix for migration testsMorris Jobke2014-12-231-1/+1
| |
* | Clean up test table in Connection Test to prevent unnecessary failures.Andreas Fischer2014-12-231-0/+19
|/
* Properly call parent::tearDown() in MDB2SchemaManager::tearDown().Andreas Fischer2014-12-201-3/+2
| | | | | The early return introduced by 04c982a96e19f2254739c24ee8c6b568edcb4190 prevents parent::tearDown() being called on Oracle.
* add unit tests for tableExists and dropTableRobin Appelman2014-12-091-0/+69
|
* Replace uniqid calls with $this->getUniqueID so tests pass again on windowsJoas Schilling2014-12-033-3/+3
|
* fix unit tests of mdb2scheamreaderMorris Jobke2014-11-201-2/+2
|
* Make remaining files extend the test baseJoas Schilling2014-11-195-12/+23
|
* disable database migration unit tests for MSSQLThomas Müller2014-10-232-5/+16
|
* Fix unit test messing up the transaction on OracleVincent Petry2014-08-201-0/+5
| | | | | | | Since the unit test is skipped anyway for Oracle, the dropTable() call should be skipped as well to avoid having a leftover transaction and cause further transactions to be nested and break the next test suites requiring transactions.
* migration test for sqlite - adding type mapping for 'tinyint unsigned'Thomas Müller2014-07-292-1/+40
|
* Adding test which breaks because bit and/or enum datatypes are usedThomas Müller2014-07-241-0/+39
|
* Added test for reserved keywordsVincent Petry2014-07-011-0/+22
|
* Fix migrator tests to use the correct migrator instancesVincent Petry2014-07-011-12/+10
|
* Added unit test for checkMigrate with primary key + autoincVincent Petry2014-06-171-0/+21
| | | | | Added unit test to make sure that checkMigrate() works when adding a primary key and autoincrement column to a table schema.
* adding PK to table encryptionThomas Müller2014-06-063-0/+93
| | | | | | | | | | | | | | | | | | | | adding auto increment/PK to table files_trash adding PK to table ldap_user_mapping and ldap_group_members adding PK to table ldap_group_mapping truncate permissions table to allow smooth creation of primary key adding unit test for creating an auto increment column on a table which already contains data remove unneeded table files_trashsizes fix unit test no need to truncate *PREFIX*permissions On Oracle adding auto increment columns is not working out of the box - Oracle migrations are to be done manually
* Fix unit testsRobin Appelman2014-06-031-1/+1
|
* skip tests for oracleRobin Appelman2014-06-031-0/+3
|
* Check sqlite migration on a copy of the database fileRobin Appelman2014-06-031-19/+47
|
* Fix migrator for postgresRobin Appelman2014-06-031-7/+3
|
* skip migration tests for sqliteRobin Appelman2014-06-031-3/+11
|
* Create unique names for temporary indexesRobin Appelman2014-06-031-5/+8
|
* Add a mechanism to try the database migration on a copy of the tables before ↵Robin Appelman2014-06-031-0/+84
| | | | running it on the "real" data
* Increment number of columns by oneOliver Gasser2013-12-181-1/+1
|