Fix some missing $this-> in ddl/dml stuff. MDL-15236
This commit is contained in:
@@ -516,7 +516,7 @@ abstract class moodle_database {
|
||||
}
|
||||
}
|
||||
$select = implode(" AND ", $select);
|
||||
return get_recordset_select($table, $select, $params, $sort, $fields, $limitfrom, $limitnum);
|
||||
return $this->get_recordset_select($table, $select, $params, $sort, $fields, $limitfrom, $limitnum);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -115,7 +115,7 @@ class mssql_adodb_moodle_database extends adodb_moodle_database {
|
||||
if (!$text) {
|
||||
return ' CAST(' . $fieldname . ' AS INT) ';
|
||||
} else {
|
||||
return ' CAST(' . sql_compare_text($fieldname) . ' AS INT) ';
|
||||
return ' CAST(' . $this->sql_compare_text($fieldname) . ' AS INT) ';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ class mssql_adodb_moodle_database extends adodb_moodle_database {
|
||||
|
||||
public function sql_isempty($tablename, $fieldname, $nullablefield, $textfield) {
|
||||
if ($textfield) {
|
||||
return sql_compare_text($fieldname)." = '' ";
|
||||
return $this->sql_compare_text($fieldname)." = '' ";
|
||||
} else {
|
||||
return " $fieldname = '' ";
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ class oci8po_adodb_moodle_database extends adodb_moodle_database {
|
||||
}
|
||||
|
||||
public function sql_bitor($int1, $int2) {
|
||||
return '((' . $int1 . ') + (' . $int2 . ') - ' . sql_bitand($int1, $int2) . ')';
|
||||
return '((' . $int1 . ') + (' . $int2 . ') - ' . $this->sql_bitand($int1, $int2) . ')';
|
||||
}
|
||||
|
||||
public function sql_bitxor($int1, $int2) {
|
||||
@@ -169,7 +169,7 @@ class oci8po_adodb_moodle_database extends adodb_moodle_database {
|
||||
if (!$text) {
|
||||
return ' CAST(' . $fieldname . ' AS INT) ';
|
||||
} else {
|
||||
return ' CAST(' . sql_compare_text($fieldname) . ' AS INT) ';
|
||||
return ' CAST(' . $this->sql_compare_text($fieldname) . ' AS INT) ';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -418,7 +418,7 @@ class postgres7_adodb_moodle_database extends adodb_moodle_database {
|
||||
}
|
||||
|
||||
public function sql_bitxor($int1, $int2) {
|
||||
return '(' . sql_bitor($int1, $int2) . ' - ' . sql_bitand($int1, $int2) . ')';
|
||||
return '(' . $this->sql_bitor($int1, $int2) . ' - ' . $this->sql_bitand($int1, $int2) . ')';
|
||||
}
|
||||
|
||||
public function sql_cast_char2int($fieldname, $text=false) {
|
||||
|
||||
Reference in New Issue
Block a user