]> git.mjollnir.org Git - moodle.git/commitdiff
Delete one trailing comma
authorstronk7 <stronk7>
Tue, 12 Sep 2006 22:15:44 +0000 (22:15 +0000)
committerstronk7 <stronk7>
Tue, 12 Sep 2006 22:15:44 +0000 (22:15 +0000)
lib/xmldb/classes/generators/oci8po/oci8po.class.php
lib/xmldb/classes/generators/postgres7/postgres7.class.php

index 5c2198e29ae20f8328be9d06ec5245c7db3e724f..77c660c05bdf69e6577e60d5167049388635540e 100644 (file)
@@ -120,7 +120,7 @@ class XMLDBoci8po extends XMLDBgenerator {
     function getEnumExtraSQL ($xmldb_table, $xmldb_field) {
         
         $sql = 'CONSTRAINT ' . $this->getNameForObject($xmldb_table->getName(), $xmldb_field->getName(), 'ck');
-        $sql.= ' CHECK (' . $this->getEncQuoted($xmldb_field->getName()) . ' IN (' . implode(', ', $xmldb_field->getEnumValues()) . ')),';
+        $sql.= ' CHECK (' . $this->getEncQuoted($xmldb_field->getName()) . ' IN (' . implode(', ', $xmldb_field->getEnumValues()) . '))';
 
         return $sql;
     }
index e9e2599bad382dbbfdd84ed48309b209eff8734a..ba8bd60e6e181066e9d7f56cc9cf37d41c1bc629 100644 (file)
@@ -120,7 +120,7 @@ class XMLDBpostgres7 extends XMLDBgenerator {
     function getEnumExtraSQL ($xmldb_table, $xmldb_field) {
         
         $sql = 'CONSTRAINT ' . $this->getNameForObject($xmldb_table->getName(), $xmldb_field->getName(), 'ck');
-        $sql.= ' CHECK (' . $this->getEncQuoted($xmldb_field->getName()) . ' IN (' . implode(', ', $xmldb_field->getEnumValues()) . ')),';
+        $sql.= ' CHECK (' . $this->getEncQuoted($xmldb_field->getName()) . ' IN (' . implode(', ', $xmldb_field->getEnumValues()) . '))';
 
         return $sql;
     }