Added one more XMLDB test for find_sequence_name()

This commit is contained in:
stronk7
2006-10-16 17:56:30 +00:00
parent f8961f9bc0
commit 7873f331ea
+14
View File
@@ -721,6 +721,20 @@ class test extends XMLDBAction {
$tests['rename table'] = $test;
}
/// 41th test. Getting the PK sequence name for one table
if ($test->status) {
$table->setName('newnameforthetable');
$test->sql = array(find_sequence_name($table));
$test->status = find_sequence_name($table);
if (!$test->status) {
if (!$test->error = $db->ErrorMsg()) { //If no db errors, result is ok. Just the driver doesn't support this
$test->sql = array('not needed for this DB');
$test->status = true;
}
}
$tests['find sequence name'] = $test;
}
/// TODO: Check here values of the inserted records to see that everything ha the correct value