Permalink
Browse files

MDL-24207 dml - fix in oracle fallabck for sequences that shouldn't b…

…e executed ever
  • Loading branch information...
1 parent 9a688af commit 28ff610968050942d87ff8e4dd7248747cc9ccdc @stronk7 stronk7 committed Sep 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dmllib.php
View
@@ -1512,7 +1512,7 @@ function insert_record($table, $dataobject, $returnid=true, $primarykey='id') {
$seqname = find_sequence_name($xmldb_table);
if (!$seqname) {
/// Fallback, seqname not found, something is wrong. Inform and use the alternative getNameForObject() method
- debugging('Sequence name for table ' . $table->getName() . ' not found', DEBUG_DEVELOPER);
+ debugging('Sequence name for table ' . $xmldb_table->getName() . ' not found', DEBUG_DEVELOPER);
$generator = new XMLDBoci8po();
$generator->setPrefix($CFG->prefix);
$seqname = $generator->getNameForObject($table, $primarykey, 'seq');

0 comments on commit 28ff610

Please sign in to comment.