]> git.mjollnir.org Git - moodle.git/commitdiff
MSSQL blobs doesn't like quoted binaries. MDL-9835
authorstronk7 <stronk7>
Fri, 10 Aug 2007 00:56:41 +0000 (00:56 +0000)
committerstronk7 <stronk7>
Fri, 10 Aug 2007 00:56:41 +0000 (00:56 +0000)
Merged from MOODLE_18_STABLE

lib/dmllib.php

index 56a2120059e0a4cfbf345ee6e640c039716136c5..5a8fb24e4a2d44b464e447fd30f3511de5ae78bb 100644 (file)
@@ -2325,8 +2325,8 @@ function db_update_lobs ($table, $sqlcondition, &$clobs, &$blobs) {
 
             if (defined('MDL_PERFDB')) { global $PERF ; $PERF->dbqueries++; }; /// Count the extra updates in PERF
 
-        /// Oracle BLOBs doesn't like quoted strings (are inserted via prepared statemets)
-            if ($CFG->dbfamily == 'oracle') {
+        /// Oracle and MSSQL BLOBs doesn't like quoted strings (are inserted via prepared statemets)
+            if ($CFG->dbfamily == 'oracle' || $CFG->dbfamily == 'mssql') {
                 $value = stripslashes_safe($value);
             }