summaryrefslogtreecommitdiffstats
path: root/lib/private/DB
Commit message (Collapse)AuthorAgeFilesLines
* rename fun to funcRobin Appelman2017-03-301-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* dont double escapeRobin Appelman2017-03-302-2/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix licence headersRobin Appelman2017-03-305-40/+45
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add function builder to the query builderRobin Appelman2017-03-305-0/+172
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add support for escaping like parameters when using the query builderRobin Appelman2017-03-303-0/+50
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add MD5() to sqliteRobin Appelman2017-03-301-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Address commentsMorris Jobke2017-03-212-21/+1
| | | | | | | | | * fix URL to documentation * improve logic of UTF8mb4 check * fix connection parameter creation - it's done already in ConnectionFactory::createConnectionParams * remove unused attributes of MDB2SchemaReader Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Adding tests for 4 byte unicode charactersMorris Jobke2017-03-214-12/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * success on SQLite and Postgres * failure on MySQL due to the limited charset that only supports up to 3 bytes Add config option to update charset of mysql to utf8mb4 * fully optional * requires additional options set in the database only disable unicode test on mysql Fixing ctor call Adding docker based unit test execution for mysql utf8mb4 Add mysqlmb4 test configuration to Jenkinsfile fix collation on utf8mb4 Properly setup charset and collation in the doctrine connection Allow files containing 4-byte chars in case the database supports it During setup of a mysql database we try to detect if charset 'utf8mb4' can be used Fix mysql settings Add console command to migrate the charset Set ROW_FORMAT before setting collation to mb4 Also select tables with wrong collation Faster MySQL docker Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use SystemConfig instead of AllConfig for DB stuffMorris Jobke2017-03-191-14/+22
| | | | | | * preparation for followup PRs to clean up the DB bootstrapping Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Namespace and array syntax fixesMorris Jobke2017-03-192-25/+27
| | | | | | * minor fixes in preparation of a bigger DB and config PR Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fixed failing test which was ignoring a required (not null) column (#26303)Philipp Schaffrath2017-03-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | * Fixed failing test which was ignoring a required (not null) column * restored test to original, catching DriverException which also catches ConstraintViolationException * catch ConstraintViolationException again * removed unnecessary field from this test * clobfield should be nullable * clobfield now is nullable * removed autoincrement since whenever this strategy is enabled, oracle would not throw constraint violation exceptions (needed for setValues), which mysql still does * this field does not auto increment anymore * mark integerfield as primary, since it is not getting marked as such through auto increment anymore, integerfield default always has been 0 instead of null Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add bitwise AND and OR to the expression builderJoas Schilling2017-01-051-1/+37
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow aliasing columns when using the query builderRobin Appelman2016-11-171-0/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* @since 9.2.0 to @since 11.0.0Roeland Jago Douma2016-11-151-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Inject config and loggerJoas Schilling2016-11-022-6/+22
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Log the queries of the QueryBuilder as wellJoas Schilling2016-11-021-0/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow 4byte unicode filenames on supported platformsRobin Appelman2016-10-201-0/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix like queries in the QueryBuilderJoas Schilling2016-10-192-5/+29
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Correctly save and pass on the charsetJoas Schilling2016-10-191-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fixing ctor callThomas Müller2016-10-191-3/+3
|
* Add config option to update charset of mysql to utf8mb4Morris Jobke2016-10-194-3/+27
| | | | | * fully optional * requires additional options set in the database
* Kill update simulationVincent Petry2016-09-271-11/+0
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Update with robinJoas Schilling2016-07-2120-20/+20
|
* Fix othersJoas Schilling2016-07-2131-48/+79
|
* Various database migration fixes (#25209)Thomas Müller2016-06-295-1/+93
| | | | | | | | | | | | | * String columns with a length higher then 4000 are converted into a CLOB columns automagically - we have to respect this when migrating * Adding schema migration tests to prevent unnecessary and non-sense migration steps Fix Oracle autoincrement and unsigned handling * Fix sqlite integer type for autoincrement * Use lower case table names - fixes pg * Fix postgres with default -1 - this only affect pg 9.4 servers - 9.5 seems to work fine
* map oracle driver options to params (#23938)Jörn Friedrich Dreyer2016-06-101-0/+4
|
* Update license headersLukas Reschke2016-05-265-2/+5
|
* Speedup schema cloning for MySQLVictor Dubiniuk2016-05-231-0/+23
|
* Add a method to lock a tableJoas Schilling2016-05-214-1/+75
|
* Fix broken exception namingRoeland Jago Douma2016-05-191-3/+3
|
* do propagation in a single queryRobin Appelman2016-04-251-0/+1
|
* Move \OC\DB to PSR-4Roeland Jago Douma2016-04-1530-0/+4451
Besides the statement wrapper that is moved to the legacy folder (namepsace of shame folder)