]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix syntax error in postgres table check code
authorBart Visscher <bartv@thisnet.nl>
Fri, 12 Oct 2012 17:26:15 +0000 (19:26 +0200)
committerBart Visscher <bartv@thisnet.nl>
Fri, 12 Oct 2012 17:26:15 +0000 (19:26 +0200)
tests/lib/dbschema.php

index 4796ada6921f063c3b356f33111e1937b19bed65..cd408160afb3770ddaeeb28363602ca51e3b7013 100644 (file)
@@ -93,7 +93,7 @@ class Test_DBSchema extends UnitTestCase {
                                $sql = "SELECT tablename AS table_name, schemaname AS schema_name "
                                . "FROM pg_tables WHERE schemaname NOT LIKE 'pg_%' "
                                .  "AND schemaname != 'information_schema' "
-                               .  "AND tablename == '".$table."'";
+                               .  "AND tablename = '".$table."'";
                                $query = OC_DB::prepare($sql);
                                $result = $query->execute(array());
                                $exists = $result && $result->fetchOne();