UpdateDatabase.php
authorAlan Knowles <alan@roojs.com>
Fri, 15 Nov 2013 04:58:46 +0000 (12:58 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 15 Nov 2013 04:58:46 +0000 (12:58 +0800)
UpdateDatabase.php

index acb4d1c..fcd9e22 100644 (file)
@@ -184,8 +184,8 @@ class Pman_Xtuple_UpdateDatabase extends Pman
         $cs = DB_DataObject::factory('core_enum');
          $cs->query("
                SELECT  'SELECT SETVAL(' ||
-                         quote_literal(quote_ident(nspname || '.' || S.relname))||
-                        ', MAX(' || nspname || '.' || quote_ident(C.attname)|| ') )  FROM ' || nspname || '.' || quote_ident(T.relname)|| ';' as cmd 
+                         quote_literal(quote_ident(nspname) || '.' || quote_ident(S.relname)))||
+                        ', MAX(' || quote_ident(C.attname)|| ') )  FROM ' || nspname || '.' || quote_ident(T.relname)|| ';' as cmd 
                 FROM pg_class AS S,
                     pg_depend AS D,
                     pg_class AS T,