Skip to content

Commit

Permalink
database MDL-24863 applied fix like MDL-23997 which converts number t…
Browse files Browse the repository at this point in the history
…o string.
  • Loading branch information
nebgor committed Nov 17, 2010
1 parent 49084fe commit 4f8b963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dml/mssql_native_moodle_database.php
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ protected function emulate_bound_params($sql, array $params=null) {
$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;
Expand Down

0 comments on commit 4f8b963

Please sign in to comment.