nextcloud/lib/private
Andreas Fischer 63a2bea7ec Remove OC_DB_StatementWrapper::numRows().
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.
2013-12-21 19:36:14 +01:00
..
appframework add PHPDoc for urlParams 2013-11-27 10:55:06 +01:00
archive move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
backgroundjob remove background jobs if they are failing 2013-12-02 13:43:26 +01:00
cache Merge branch 'master' into fixing-4546-master 2013-10-07 17:47:54 +02:00
connector/sabre Fixed touch after chunk assembling 2013-11-29 16:29:35 +01:00
db Remove OC_DB_StatementWrapper::numRows(). 2013-12-21 19:36:14 +01:00
fileproxy move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
files Merge pull request #6201 from owncloud/backgroundscan-reuse-etag 2013-12-06 10:13:14 -08:00
group remove unneeded ; in comment 2013-12-12 13:59:00 +01:00
hooks move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
l10n Merge branch 'master' into fixing-appframework-master 2013-10-08 12:13:24 +02:00
legacy Merge pull request #4796 from owncloud/config-no-catch 2013-10-07 11:45:13 -07:00
log remove passwords from logfile 2013-11-26 12:26:32 +01:00
memcache Merge remote-tracking branch 'owncloud/master' into fixing-3417-master 2013-12-18 15:44:46 +01:00
migration move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
minimizer move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
ocs Get rid of the SELECT query. Try UPDATE, on failure INSERT. 2013-10-31 16:04:18 +01:00
preview we better use 5MB (1024 * 1024 * 5 = 5242880) instead of 1MB. 2013-11-22 12:23:22 +01:00
search move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
session check if a $_SESSION entry exists before we try to remove it 2013-12-11 12:59:48 +01:00
setup fixing PHPDoc and spelling 2013-12-02 08:42:28 +01:00
template introduce OC_Helper::linkToDocs() 2013-10-21 22:01:27 +02:00
user On webdav sesssions, loginname was compared to username which does not need to match necessarily 2013-12-13 16:58:03 +01:00
vobject move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
activitymanager.php adding OC6 public API for activities 2013-10-09 18:06:21 +02:00
allconfig.php Also add default to the \OCP\IConfig interface 2013-12-16 14:33:03 +01:00
api.php Merge multiple failed third party responses when returning the result 2013-11-14 01:21:54 +00:00
app.php add post_enable hook if a app gets enabled 2013-10-22 16:15:19 +02:00
appconfig.php dont re-read the config values for an app when a non existing key is fetched 2013-12-18 15:28:32 +01:00
apphelper.php moving file to the right location 2013-10-07 00:32:39 +02:00
archive.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
arrayparser.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
avatar.php Avatar: accept OC_Image as in setParameter 2013-11-22 23:57:23 +01:00
avatarmanager.php Round out Avatar Public API 2013-11-21 23:40:25 +01:00
backgroundjob.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
cache.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
config.php use OC_Helper::linkToDocs() in lib/private/config.php 2013-10-21 23:08:09 +02:00
contactsmanager.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
davclient.php Fixed spaces 2013-10-17 23:22:19 +02:00
db.php Send "SET NAMES utf8" to MySQL for PHP below 5.3.6 2013-12-11 00:19:51 +01:00
defaults.php fix defaults.php doc 2013-11-25 14:13:58 +01:00
eventsource.php Fixed download file from URL error messages 2013-12-12 10:38:12 +01:00
filechunking.php fixes #5367 2013-10-17 20:20:13 +02:00
fileproxy.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
files.php XSendfile and encryption don't work together 2013-12-06 17:59:59 +01:00
geo.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
group.php dispayNamesInGroup(s) should always return uid as key in the result attr, fixes #5209 2013-10-20 20:55:27 +02:00
helper.php External storage space is now not counted in total space 2013-11-18 18:09:01 +01:00
hintexception.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
hook.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
image.php Revert "use relative paths to create images from a file. This way it also works if" 2013-11-22 18:01:44 +01:00
installer.php switch code checker on by default. apps are not allowed to access some of the internal classes where we have a public api for now 2013-11-18 18:42:06 +01:00
json.php only walk an array 2013-12-18 15:25:28 +01:00
l10n.php fix plural translation - fixes #6226 2013-12-07 11:38:01 +01:00
log.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
mail.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
migrate.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
mimetypes.list.php Added missing mime types 2013-12-18 22:40:58 +01:00
minimizer.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
navigationmanager.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
notsquareexception.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
ocs.php fix the privatedata key value store 2013-10-30 19:36:29 +01:00
ocsclient.php Merge branch 'master' into lib-private-master-2 2013-10-01 16:11:59 +02:00
preferences.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
preview.php add PHPDoc for setMimetype() 2013-11-28 19:05:43 +01:00
previewmanager.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
repair.php Add a (currently) empty system for running common repair steps 2013-11-26 14:12:48 +01:00
request.php Fix getRawPathInfo for the '/' edge case 2013-11-27 21:28:54 +01:00
response.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
route.php Add patch method to OC_Route 2013-10-01 20:13:13 +02:00
router.php Symfonys addCollection() with multiple arguments is deprecated, fix deprecation warning 2013-12-04 18:01:51 +01:00
search.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
server.php fixing PHPDoc comments and syntax 2013-11-22 12:34:37 +01:00
setup.php implementing solution using <ifModule mod_authz_core> 2013-11-08 17:29:14 +01:00
subadmin.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
tagmanager.php reorganize file in lib 2013-09-30 16:39:03 +02:00
tags.php Use DEBUG instead of ERROR when favourites not found. Fix #6419 2013-12-16 17:07:22 +01:00
template.php Do not use L10n when logging exceptions 2013-12-16 15:11:13 +01:00
templatelayout.php correctly mark app management active 2013-12-09 15:53:31 +01:00
updater.php Add a (currently) empty system for running common repair steps 2013-11-26 14:12:48 +01:00
urlgenerator.php use SERVERROOT instead of WEBROOT in all file_exists checks, whitespace 2013-10-28 14:18:20 +01:00
user.php return false if user is in incognito mode 2013-11-27 16:52:30 +01:00
util.php Merge remote-tracking branch 'owncloud/master' into fixing-3417-master 2013-12-14 18:32:48 +01:00
vobject.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00