summaryrefslogtreecommitdiffstats
path: root/lib/private/db/statementwrapper.php
Commit message (Collapse)AuthorAgeFilesLines
* Remove hacky Substring support for MSSQLLukas Reschke2015-02-251-102/+0
| | | | Substring() is not required for the core functionality and this allows us to get rid of a huge hack...
* do not output DB information, and do not set headerArthur Schiwon2014-11-141-4/+7
|
* eliminate OC_Template::printErrorPage in database classes, fixes #12182Arthur Schiwon2014-11-141-4/+3
|
* Use function outside of loopLukas Reschke2014-10-241-1/+2
| | | | Otherwise the function is executed n times which is a lot of overhead
* - fix dropTable() and introduce tableExists()Thomas Müller2014-05-301-0/+1
| | | | | | | - 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
* Squash 'a | b' into 'a|b', in /libRobin McCorkell2014-05-131-1/+1
|
* adding @method annotation to declare methods which can be called on the ↵Thomas Müller2014-03-281-3/+11
| | | | wrapped statement object
* Merge branch 'master' into scrutinizer_documentation_patchesThomas Müller2014-02-181-0/+14
|\ | | | | | | | | Conflicts: lib/private/migration/content.php
| * Merge pull request #6796 from owncloud/statementwrapper-bindparamThomas Müller2014-02-181-0/+14
| |\ | | | | | | Add bindParam to the database statement wrapper
| | * Add bindParam to statement wrapperRobin Appelman2014-01-161-0/+14
| | |
* | | Merge branch 'master' into scrutinizer_documentation_patchesThomas Müller2014-02-141-0/+3
|\| | | | | | | | | | | | | | Conflicts: lib/private/appconfig.php
| * | Add caching to appconfigRobin Appelman2014-02-071-0/+3
| |/
* / polish documentation based on scrutinizer patchesJörn Friedrich Dreyer2014-02-061-0/+3
|/
* Remove OC_DB_StatementWrapper::numRows().Andreas Fischer2013-12-211-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | Using this method will result in an unneccesary extra SQL query (which also may return an incorrect result because the underlying table changed in the meantime). In general: If you are performing an UPDATE, DELETE or equivalent query, OC_DB_StatementWrapper::execute() will already give you the number of "affected rows" via \Doctrine\DBAL\Driver\Statement::rowCount(). This will not work for SELECT queries, however. If you want to know whether a table contains any rows matching your condition, use "SELECT id FROM ... WHERE ... LIMIT 1". If you want to know whether a table contains any rows matching your condition and you also need the data, use "SELECT ... FROM ... WHERE ...", then use one of the fetch() methods. If you want to count the number of rows matching your condition, use use "SELECT COUNT(...) AS number_of_rows FROM ... WHERE ...", then use one of the fetch() methods.
* move the private namespace OC into lib/private - OCP will stay in lib/publicThomas Müller2013-09-301-0/+191
Conflicts: lib/private/vcategories.php