Christoph Wurst
8b64e92b92
Bump doctrine/dbal from 2.12.0 to 3.0.0
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
d89a75be0b
Update all license headers for Nextcloud 21
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Morris Jobke
f4c1512bb7
Fix typo in @deprecated PHPDoc tag
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
5 years ago
Joas Schilling
91a3e439cb
Don't throw on SHOW VERSION query
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
a847aea19c
Deprecate OC_DB::prepare and OC_DB::executeAudited as they leak cursors
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
3d2f71cfa9
Improve query type detection
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Christoph Wurst
d9015a8c94
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 years ago
Christoph Wurst
1584c9ae9c
Add visibility to all methods and position of static keyword
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
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>
6 years ago
Christoph Wurst
44577e4345
Remove trailing and in between spaces
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
afbd9c4e6e
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
1e086064f5
Move legacy classes from PSR0 to PSR4
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
1a9330cd69
Update the license headers for Nextcloud 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Arthur Schiwon
38a90130ce
move log constants to ILogger
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
8 years ago
Morris Jobke
0a56d2185e
Return value immediately instead of assigning to a one-time variable
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Morris Jobke
d19dcfd0eb
Fix default parameter of OC_DB::executeAudited()
* fixes #7546
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Lukas Reschke
0fa49db770
Some more invalid PHPDocs in legacy classes
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
8 years ago
Morris Jobke
b8ed028870
Remove unneeded parameter in DatabaseException
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Vincent Petry
da0cea404d
Kill update simulation
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
9 years ago
Joas Schilling
0215b004da
Update with robin
9 years ago
Joas Schilling
ba87db3fcc
Fix others
9 years ago
Roeland Jago Douma
368be8894c
Move non PSR-4 files from lib/private root to legacy
As discussed we move all old style classes (OC_FOO_BAR) to legacy.
Then from there we can evaluate the need to convert them back or if they
can be fully deprecated/deleted.
10 years ago
Lukas Reschke
c353d51810
Remove Scrutinizer Auto Fixer
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Morris Jobke
190cc2bb67
Remove OC_DB::getConnection
10 years ago
Morris Jobke
fddece9552
Remove OC_DB::insertid
10 years ago
Morris Jobke
0a41cfefe3
Remove beginTransaction, commit, rollback from OC_DB
10 years ago
Morris Jobke
3917d888bd
Remove OC_DB::isError
10 years ago
Morris Jobke
547fbfdb76
Remove OC_DB::dropTable
10 years ago
Thomas Müller
5ed38a75d6
Remove remainings of mssql
10 years ago
Thomas Müller
d3ac73c0c9
Remove OC_Log
11 years ago
Morris Jobke
e837927ad5
fix followup issues with unneeded parameters
11 years ago
Morris Jobke
47ecfd98a3
DB: remove unused parameter - was forgotten during the migration to doctrine
* 377e9a8677 <- doctrine merge
11 years ago
Jenkins for ownCloud
b585d87d9d
Update license headers
11 years ago
Thomas Müller
89be55a672
let insertIfNotExist() throw the native DBALException - no need to hide the real exception
11 years ago
Joas Schilling
8fa692388b
Allow specifying the compare-array for insertIfNotExists()
11 years ago
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0 .
11 years ago
Jenkins for ownCloud
6a1a4880f0
Updating license headers
11 years ago
Robin Appelman
778d8dbafd
Add tableExists to public db api
11 years ago
Robin Appelman
8af3991d0c
Add dropTable to IDBConnection
11 years ago
Joas Schilling
e1f3abf7a5
Correctly namespace and autoload DatabaseException
11 years ago
Dan Bartram
9c1015b790
Add missing DB rollback functionality
11 years ago
Robin Appelman
e6f6cdd19f
Bit more cleanup
11 years ago
Robin Appelman
2ae6a0d96d
Move creating the database connection to the server container
11 years ago
Robin Appelman
d4e929c37a
Remove implicit prepared statement cache and get the connection from the server container in \OC_DB
11 years ago
Robin Appelman
2790bda4f8
Activate the query logger on connect
11 years ago
Duane Johnson
ccf440495e
Ensure db connection before changing cache state
When trying to upgrade from 7.0.0 to 7.0.2, the manual upgrade path
(e.g. ` sudo -u www-data /usr/bin/php5 ./occ upgrade`) exits with the
following fatal error:
```
/var/www/owncloud# php occ upgrade
PHP Fatal error: Call to a member function
disableQueryStatementCaching() on a non-object in
/var/www/owncloud/lib/private/db.php on line 423
```
This is caused by the self::$connection static variable having not
been initialized at the point of call. Adding a self::connect() fixes
the issue.
See https://forum.owncloud.org/viewtopic.php?f=29&t=23398&p=68556#p68556
11 years ago