Skip to content

Commit

Permalink
Fix some missing $this-> in ddl/dml stuff. MDL-15236
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jun 14, 2008
1 parent 0f22be2 commit a77aaef
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/dml/moodle_database.php
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ public function get_recordset_list($table, $field, array $values, $sort='', $fie
}
}
$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);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/dml/mssql_adodb_moodle_database.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function sql_cast_char2int($fieldname, $text=false) {
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) ';
}
}

Expand All @@ -125,7 +125,7 @@ public function sql_order_by_text($fieldname, $numchars=32) {

public function sql_isempty($tablename, $fieldname, $nullablefield, $textfield) {
if ($textfield) {
return sql_compare_text($fieldname)." = '' ";
return $this->sql_compare_text($fieldname)." = '' ";
} else {
return " $fieldname = '' ";
}
Expand Down
4 changes: 2 additions & 2 deletions lib/dml/oci8po_adodb_moodle_database.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public function sql_bitnot($int1) {
}

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) {
Expand All @@ -169,7 +169,7 @@ public function sql_cast_char2int($fieldname, $text=false) {
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) ';
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/dml/postgres7_adodb_moodle_database.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ public function sql_concat() {
}

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) {
Expand Down

0 comments on commit a77aaef

Please sign in to comment.