From 6caad5177da686b3028b8c2ec8b443741a2f2133 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Wed, 16 Aug 2006 17:51:49 +0000 Subject: [PATCH] Minor change to do proper create table close --- lib/xmldb/classes/generators/XMLDBGenerator.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/xmldb/classes/generators/XMLDBGenerator.class.php b/lib/xmldb/classes/generators/XMLDBGenerator.class.php index c9bd1f738a..ec6f07d0d2 100644 --- a/lib/xmldb/classes/generators/XMLDBGenerator.class.php +++ b/lib/xmldb/classes/generators/XMLDBGenerator.class.php @@ -68,7 +68,8 @@ class XMLDBgenerator { var $add_table_comments = true; // Does the generator need to add code for table comments var $prefix_on_names = true; //Does the generator need to prepend the prefix to all the key/index/sequence/trigger/check names - var $names_max_length = 30; //Max length for key/index/sequence/trigger/check names + + var $names_max_length = 30; //Max length for key/index/sequence/trigger/check names (keep 30 for all!) var $prefix; // Prefix to be used for all the DB objects @@ -139,7 +140,7 @@ class XMLDBgenerator { /// Add comments if specified if ($this->add_table_comments) { - $table .= $this->getCommentSQL ($xmldb_table) . "\n"; + $table .= $this->getCommentSQL ($xmldb_table) . ";\n"; } /// Add the indexes (each one, one statement) $indexcombs = array(); //To store all the key combinations used -- 2.39.5