Skip to content

Commit

Permalink
Added one more XMLDB test for find_sequence_name()
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Oct 16, 2006
1 parent f8961f9 commit 7873f33
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions admin/xmldb/actions/test/test.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,20 @@ function invoke() {
$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
Expand Down

0 comments on commit 7873f33

Please sign in to comment.