sql: limit 1 for UPDATE and DELETE is not supported by the SQL standard and postgresql

(see: https://www.postgresql.org/message-id/flat/1291109101.26137.35.camel%40pcd12478 )
This commit is contained in:
Florian Steinel
2016-10-27 02:41:32 +02:00
parent c3af36d33b
commit c1c96e01fa
11 changed files with 19 additions and 19 deletions

View File

@@ -70,7 +70,7 @@ class Regdir extends \Zotlabs\Web\Controller {
if(! $result['success'])
$valid = 0;
q("update site set site_valid = %d where site_url = '%s' limit 1",
q("update site set site_valid = %d where site_url = '%s'",
intval($valid),
strtolower($url)
);