summaryrefslogtreecommitdiffstats
path: root/lib/private/db.php
Commit message (Collapse)AuthorAgeFilesLines
* Happy new year!Thomas Müller2016-01-121-3/+1
|
* Remove OC_DB::getConnectionMorris Jobke2016-01-071-7/+0
|
* Remove OC_DB::insertidMorris Jobke2016-01-071-15/+0
|
* Remove beginTransaction, commit, rollback from OC_DBMorris Jobke2016-01-071-21/+0
|
* Remove OC_DB::isErrorMorris Jobke2016-01-071-15/+2
|
* Remove OC_DB::dropTableMorris Jobke2016-01-071-9/+0
|
* Remove remainings of mssqlThomas Müller2015-07-291-1/+1
|
* Remove OC_LogThomas Müller2015-07-031-2/+2
|
* fix followup issues with unneeded parametersMorris Jobke2015-04-181-3/+3
|
* DB: remove unused parameter - was forgotten during the migration to doctrineMorris Jobke2015-04-181-3/+2
| | | | * 377e9a8677afc92bca61fb1bb055901db8457896 <- doctrine merge
* Update license headersJenkins for ownCloud2015-03-261-12/+21
|
* let insertIfNotExist() throw the native DBALException - no need to hide the ↵Thomas Müller2015-03-091-15/+2
| | | | real exception
* Allow specifying the compare-array for insertIfNotExists()Joas Schilling2015-03-091-2/+2
|
* Revert "Updating license headers"Morris Jobke2015-02-261-21/+13
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Updating license headersJenkins for ownCloud2015-02-231-13/+21
|
* Add tableExists to public db apiRobin Appelman2014-12-091-37/+2
|
* Add dropTable to IDBConnectionRobin Appelman2014-12-091-10/+1
|
* Correctly namespace and autoload DatabaseExceptionJoas Schilling2014-11-271-25/+11
|
* Add missing DB rollback functionalityDan Bartram2014-10-241-0/+7
|
* Bit more cleanupRobin Appelman2014-10-221-25/+10
|
* Move creating the database connection to the server containerRobin Appelman2014-10-221-63/+2
|
* Remove implicit prepared statement cache and get the connection from the ↵Robin Appelman2014-10-221-26/+9
| | | | server container in \OC_DB
* Activate the query logger on connectRobin Appelman2014-10-201-0/+1
|
* Ensure db connection before changing cache stateDuane Johnson2014-08-301-0/+1
| | | | | | | | | | | | | | | | | | | 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
* - Added test to trigger index id errorVincent Petry2014-07-141-0/+10
| | | | | - re-enable encryption migration tests - sqlite requires reconnect after schema changes
* We obviously have to pass the hostname as is when there is no ':' in the ↵Andreas Fischer2014-06-171-1/+1
| | | | | | hostname. This reverts commit 73062040e68212ac6e92d36211ca0bef91777589.
* Merge pull request #9018 from owncloud/dbms-socket-supportFrank Karlitschek2014-06-131-25/+19
|\ | | | | Refactor OC_DB::connect() to properly support sockets.
| * Don't specify host when using a socket.Andreas Fischer2014-06-121-1/+1
| |
| * Rename variable to indicate that it can be port and socket.Andreas Fischer2014-06-121-4/+4
| |
| * No need to check the port number as this will fail anyway.Andreas Fischer2014-06-121-1/+1
| |
| * Move getValue() to where required. This actually is not required "global data".Andreas Fischer2014-06-121-9/+5
| |
| * Move check for : to where it belongs, getting rid of $socket = false;Andreas Fischer2014-06-121-8/+5
| |
| * Extract common variables of $connectionParams.Andreas Fischer2014-06-121-11/+8
| |
| * Inline $port expression, getting rid of $port variable.Andreas Fischer2014-06-121-2/+1
| |
| * Fixes based on suggestionsjosh4trunks2014-06-111-11/+7
| | | | | | | | | | | | | | | | | | | | | | I use the term socket for any extension, either unix socket, or internet socket (port). I check if the socket is all digits * only integers 0 and larger would pass this test. I then check if the string is less than or equal to the maximum port number. By using "if($socket)" I make sure socket isn't false, empty, or the string '0'. I don't believe I need to initialize $port because $port will always be set if $socket is true. Please show me if I am wrong here. Thanks
| * Fix variable not always being defined.josh4trunks2014-06-041-0/+2
| |
| * Work with MySQL Socketsjosh4trunks2014-06-041-1/+8
| | | | | | | | | | | | | | This passes anything that is not a valid port (0<int<65535) as a unix socket. I tested this with unix sockets; this needs to be tested with a non-standard mysql port as well but I don't foresee any issues. To use a unix socket, even one different than PHP's mysql.default_socket.. * Database Host = localhost:/path/to/socket
* | Removed simulate db update flag and split into separate methodsVincent Petry2014-06-041-9/+20
| |
* | Simulate apps database schema update on upgradeVincent Petry2014-06-041-3/+9
|/ | | | | When upgrade, also simulate the database schema update for apps before doing the actual upgrade.
* - fix dropTable() and introduce tableExists()Thomas Müller2014-05-301-15/+59
| | | | | | | - kill replaceDB() - this function is unused and it's implementation obviously wrong - add method annotation OC_DB_StatementWrapper::fetchAll - remove duplicate code in Test_DBSchema and reuse OC_DB::tableExists - remove unused variables
* Merge pull request #8639 from owncloud/drop-briefThomas Müller2014-05-191-10/+10
|\ | | | | Remove all occurences of @brief and @returns from PHPDoc
| * Remove all occurences of @brief and @returns from PHPDocMorris Jobke2014-05-191-14/+14
| | | | | | | | * test case added to avoid adding them later
* | Merge pull request #6457 from owncloud/db-convert-toolFrank Karlitschek2014-05-191-98/+41
|\ \ | |/ |/| Command line tool to convert current database to others, except sqlite
| * Merge remote-tracking branch 'owncloud/master' into db-convert-toolAndreas Fischer2014-04-091-3/+2
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * owncloud/master: (137 commits) add comment to clearify when a skip in the foreach happens remove obsolete code Always define sendmail_is_available [tx-robot] updated from transifex Make hardcoded exception messages translatable Disable sharing in trashbin app class Test_Config is already declared [tx-robot] updated from transifex using array_key_exists() instead of isset() - required because in case the value is null isset is returning false fixing undefined exception classes unit test testSetAppValueIfSetToNull() added unit tests for dynamic backend registration ignore underscore.js in scrutinizer.yml adding ownCloud globals to jshintrc: OC, t, n Use git checkout on directory as some files may not be in git resulting in, e.g.: adding underscore.js reduce code duplication, fix parse error, prevent page reload on hitting enter while changing the display name - refs #8085 translations for oc-dialogs reside in code Fix copy conflict dialog translation [tx-robot] updated from transifex ...
| * | Deduplicate connection handling code into \OC\DB\ConnectionFactoryAndreas Fischer2014-03-311-98/+41
| | |
* | | Fix all PHPDoc types and variable names, in /libRobin McCorkell2014-05-131-1/+1
| |/ |/|
* | More PHPDoc fixes, using scrutinizer patches as hintsBart Visscher2014-02-281-3/+2
|/
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2014-02-191-1/+2
| | | | | | | | | | | This patch was automatically generated as part of the following inspection: https://scrutinizer-ci.com/g/owncloud/core/inspections/cdfecc4e-a37e-4233-8025-f0d7252a8720 Enabled analysis tools: - PHP Analyzer - JSHint - PHP Copy/Paste Detector - PHP PDepend
* Merge branch 'master' into scrutinizer_documentation_patchesThomas Müller2014-02-181-1/+1
|\ | | | | | | | | Conflicts: lib/private/migration/content.php
| * Merge branch 'master' into fix-5388-masterBart Visscher2013-12-161-0/+3
| |\