From bdb794843a3b870250026170990d75246ee0a130 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 15 Mar 2007 19:16:27 +0000 Subject: [PATCH] Testing comments and default clauses containing chars to be escaped. Merged from MOODLE_18_STABLE --- admin/xmldb/actions/test/test.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/xmldb/actions/test/test.class.php b/admin/xmldb/actions/test/test.class.php index 02321fead9..6369e15de8 100644 --- a/admin/xmldb/actions/test/test.class.php +++ b/admin/xmldb/actions/test/test.class.php @@ -114,6 +114,8 @@ class test extends XMLDBAction { $table->addIndexInfo('course', XMLDB_INDEX_NOTUNIQUE, array('course')); $table->addIndexInfo('rsstype', XMLDB_INDEX_UNIQUE, array('rsstype')); + $table->setComment("This is a test'n drop table. You can drop it safely"); + /// Get SQL code and execute it $test = new stdClass; $test->sql = $table->getCreateTableSQL($CFG->dbtype, $CFG->prefix, true); @@ -275,7 +277,7 @@ class test extends XMLDBAction { /// Get SQL code and execute it $test = new stdClass; $field = new XMLDBField('grade'); - $field->setAttributes(XMLDB_TYPE_CHAR, '20', null, XMLDB_NOTNULL, null, null, null, 'test'); + $field->setAttributes(XMLDB_TYPE_CHAR, '20', null, XMLDB_NOTNULL, null, null, null, "test'n drop"); $test->sql = $table->getAlterFieldSQL($CFG->dbtype, $CFG->prefix, $field, true); $test->status = change_field_type($table, $field, false, false); -- 2.39.5