# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: moodle/lib/dml/mssql_native_moodle_database.php
--- moodle/lib/dml/mssql_native_moodle_database.php Base (1.38)
+++ moodle/lib/dml/mssql_native_moodle_database.php Locally Modified (Based On 1.38)
@@ -622,7 +622,7 @@
                 $return .= 'NULL';
 
             } else if (is_number($param)) { // we can not use is_numeric() because it eats leading zeros from strings like 0045646
-                $return .= $param;
+                $return .= "'".$param."'"; //fix for MDL-24863 to prevent auto-cast to int.
 
             } else if (is_float($param)) {
                 $return .= $param;
