syntax
authorJason Etheridge <jason@esilibrary.com>
Fri, 20 Mar 2009 15:15:19 +0000 (15:15 +0000)
committerJason Etheridge <jason@esilibrary.com>
Fri, 20 Mar 2009 15:15:19 +0000 (15:15 +0000)
sql/base/base_migration_schema_procs.sql

index ae20943..f57aa44 100644 (file)
@@ -28,7 +28,7 @@ CREATE OR REPLACE FUNCTION migration_tools.production_tables (TEXT) RETURNS TEXT
             EXECUTE 'SELECT string_to_array(value,'','') AS tables FROM ' || migration_schema || '.config WHERE key = ''production_tables'';'
         LOOP
             RETURN output.tables;
-        END;
+        END LOOP;
     END;
 $$ LANGUAGE PLPGSQL STRICT STABLE;