Nextcloud Server
Go to file
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
3rdparty@42efd96628 [tx-robot] updated from transifex 2013-12-20 01:57:49 -05:00
apps [tx-robot] updated from transifex 2013-12-21 01:56:13 -05:00
build
config Document memcached settings in config.sample.php 2013-12-09 01:20:10 +01:00
core [tx-robot] updated from transifex 2013-12-21 01:56:13 -05:00
l10n [tx-robot] updated from transifex 2013-12-21 01:56:13 -05:00
lib Remove OC_DB_StatementWrapper::numRows(). 2013-12-21 19:36:14 +01:00
ocs
search
settings [tx-robot] updated from transifex 2013-12-21 01:56:13 -05:00
tests Add unit tests for decimal type usage 2013-12-18 23:40:11 +01:00
themes
.gitignore ignore test files 2013-11-04 17:17:32 +01:00
.gitmodules
.htaccess
AUTHORS
autotest.cmd
autotest.sh keep junit xml reports 2013-11-04 17:25:07 +01:00
console.php
CONTRIBUTING.md Adding link to documents repo 2013-10-31 11:16:56 +01:00
COPYING-AGPL
COPYING-README
cron.php Catch exceptions from background jobs and log them 2013-12-02 13:41:47 +01:00
db_structure.xml Add index on oc_appconfig for appid 2013-12-18 15:13:27 +01:00
index.html
index.php Added $app parameter to logException 2013-10-23 13:58:42 +02:00
issue_template.md Added entry with ext storage info 2013-12-18 13:31:15 +01:00
occ
public.php Add "single user mode" which restricts access to users in the admin group 2013-11-25 15:08:24 +01:00
README.md
remote.php
robots.txt
status.php
version.php Add index on oc_appconfig for appid 2013-12-18 15:13:27 +01:00

ownCloud

ownCloud gives you freedom and control over your own data. A personal cloud which runs on your own server.

Build Status on Jenkins CI

Git master: Build Status

Installation instructions

http://doc.owncloud.org/server/5.0/developer_manual/app/gettingstarted.html

Contribution Guidelines

http://owncloud.org/dev/contribute/

Get in touch

Important notice on translations

Please submit translations via Transifex: https://www.transifex.com/projects/p/owncloud/

For more detailed information about translations: http://owncloud.org/dev/translation/