Fix some missing $this-> in ddl/dml stuff. MDL-15236

This commit is contained in:
stronk7
2008-06-14 00:00:26 +00:00
parent 0f22be2e94
commit a77aaef267
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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);
}
/**
+2 -2
View File
@@ -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 = '' ";
}
+2 -2
View File
@@ -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) ';
}
}
+1 -1
View File
@@ -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) {