MSSQL blobs doesn't like quoted binaries. MDL-9835

This commit is contained in:
stronk7
2007-08-10 00:55:44 +00:00
parent 0ab95f8bf6
commit daf3c36c51
+2 -2
View File
@@ -2200,8 +2200,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);
}