From 8207a811906df1251822fa044c6dd80de7ac2e66 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Fri, 10 Aug 2007 00:56:41 +0000 Subject: [PATCH] MSSQL blobs doesn't like quoted binaries. MDL-9835 Merged from MOODLE_18_STABLE --- lib/dmllib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dmllib.php b/lib/dmllib.php index 56a2120059..5a8fb24e4a 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -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); } -- 2.39.5