[Pkg-owncloud-commits] [owncloud] 43/153: Remove unnecessary +1 from PostgreSQL sequence correction query.
David Prévot
taffit at moszumanska.debian.org
Tue May 27 03:05:33 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit f35eae64423b6d0346a13ff04fe2106d27276d66
Author: Andreas Fischer <bantu at owncloud.com>
Date: Fri Apr 11 21:56:14 2014 +0200
Remove unnecessary +1 from PostgreSQL sequence correction query.
---
core/command/db/converttype.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/command/db/converttype.php b/core/command/db/converttype.php
index 863c739..cf0f443 100644
--- a/core/command/db/converttype.php
+++ b/core/command/db/converttype.php
@@ -232,7 +232,7 @@ class ConvertType extends Command {
array("nextval('".$sequence->getName()."'::regclass)", $dbname));
$table_name = $info['table_name'];
$column_name = $info['column_name'];
- $toDB->executeQuery("SELECT setval('" . $sequence->getName() . "', (SELECT MAX(" . $column_name . ") FROM " . $table_name . ")+1)");
+ $toDB->executeQuery("SELECT setval('" . $sequence->getName() . "', (SELECT MAX(" . $column_name . ") FROM " . $table_name . "))");
}
}
// save new database config
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list