Permalink
Browse files

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

…e executed ever. Backported from 19_STABLE
  • Loading branch information...
1 parent 3b7661a commit c558941cf588fea91edd6195c32f05bcff07473e @stronk7 stronk7 committed Sep 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dmllib.php
View
2 lib/dmllib.php
@@ -1384,7 +1384,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 c558941

Please sign in to comment.