Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-38091 fixed bug with SQL query on Oracle

  • Loading branch information...
commit c49adb8e18144d4ffc8bbfcdb5feab1c686aedd1 1 parent 56d22f1
@marinaglancy marinaglancy authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/filestorage/file_storage.php
View
4 lib/filestorage/file_storage.php
@@ -1852,8 +1852,8 @@ public function update_references_to_storedfile(stored_file $storedfile) {
$referencehash = sha1($reference);
$sql = "SELECT repositoryid, id FROM {files_reference}
- WHERE referencehash = ? and reference = ?";
- $rs = $DB->get_recordset_sql($sql, array($referencehash, $reference));
+ WHERE referencehash = ?";
+ $rs = $DB->get_recordset_sql($sql, array($referencehash));
$now = time();
foreach ($rs as $record) {

0 comments on commit c49adb8

Please sign in to comment.
Something went wrong with that request. Please try again.