mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
18 lines
584 B
PHP
18 lines
584 B
PHP
<?php //$Id$
|
|
|
|
require_once($CFG->libdir.'/dml/adodb_moodle_recordset.php');
|
|
|
|
/**
|
|
* Oracle moodle recordest with special hacks
|
|
* @package dml
|
|
*/
|
|
class oci8po_adodb_moodle_recordset extends adodb_moodle_recordset {
|
|
|
|
public function current() {
|
|
/// Really DIRTY HACK for Oracle - needed because it can not see difference from NULL and ''
|
|
/// this can not be removed even if we change db defaults :-(
|
|
$fields = $this->rs->fields;
|
|
array_walk($fields, array('oci8po_adodb_moodle_database', 'onespace2empty'));
|
|
return (object)$fields;
|
|
}
|
|
}
|