From c558941cf588fea91edd6195c32f05bcff07473e Mon Sep 17 00:00:00 2001 From: Eloy Lafuente Date: Wed, 15 Sep 2010 20:09:58 +0000 Subject: [PATCH] MDL-24207 dml - fix in oracle fallabck for sequences that shouldn't be executed ever. Backported from 19_STABLE --- lib/dmllib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dmllib.php b/lib/dmllib.php index c35190a7c75..5100a3a44d7 100644 --- a/lib/dmllib.php +++ b/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');