Skip to content

Commit

Permalink
MDL-17491 experimental native oracle driver - still bugy and incomple…
Browse files Browse the repository at this point in the history
…te, this will require more core changes, grrrrrr
  • Loading branch information
skodak committed Dec 5, 2008
1 parent eb96635 commit 66e75f8
Show file tree
Hide file tree
Showing 4 changed files with 1,326 additions and 8 deletions.
7 changes: 4 additions & 3 deletions lib/dml/moodle_database.php
Expand Up @@ -778,13 +778,14 @@ public function get_recordset_list($table, $field, array $values, $sort='', $fie
* @throws dml_exception if error
*/
public function get_recordset_select($table, $select, array $params=null, $sort='', $fields='*', $limitfrom=0, $limitnum=0) {
$sql = "SELECT $fields FROM {".$table."}";
if ($select) {
$select = "WHERE $select";
$sql .= " WHERE $select";
}
if ($sort) {
$sort = " ORDER BY $sort";
$sql .= " ORDER BY $sort";
}
return $this->get_recordset_sql("SELECT $fields FROM {$this->prefix}$table $select $sort", $params, $limitfrom, $limitnum);
return $this->get_recordset_sql($sql, $params, $limitfrom, $limitnum);
}

/**
Expand Down

0 comments on commit 66e75f8

Please sign in to comment.