]> git.mjollnir.org Git - moodle.git/commitdiff
Added support to SQL generation of statements
authorstronk7 <stronk7>
Sun, 27 Aug 2006 22:22:23 +0000 (22:22 +0000)
committerstronk7 <stronk7>
Sun, 27 Aug 2006 22:22:23 +0000 (22:22 +0000)
lib/xmldb/classes/XMLDBStructure.class.php

index 46a28e2b8d9203241f150170ddbb67985d118c95..d711f57f83efe337a339bee34594dec4df1f4fac 100644 (file)
@@ -710,6 +710,12 @@ class XMLDBStructure extends XMLDBObject {
                 $results = array_merge($results, $table->getCreateTableSQL($dbtype, $prefix, $statement_end));
             }
         }
+
+        if ($statements = $this->getStatements()) {
+            foreach ($statements as $statement) {
+                $results = array_merge($results, $statement->getExecuteStatementSQL($dbtype, $prefix, $statement_end));
+            }
+        }
         return $results;
     }
 }