Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
422f68f
)
MDL-39028 fix sqlsrv concat type conversion
author
Petr Škoda
<commits@skodak.org>
Mon, 8 Apr 2013 11:17:56 +0000
(13:17 +0200)
committer
Petr Škoda
<commits@skodak.org>
Mon, 8 Apr 2013 11:17:56 +0000
(13:17 +0200)
lib/dml/sqlsrv_native_moodle_database.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/dml/sqlsrv_native_moodle_database.php
b/lib/dml/sqlsrv_native_moodle_database.php
index
6fc935d
..
09fa92e
100644
(file)
--- a/
lib/dml/sqlsrv_native_moodle_database.php
+++ b/
lib/dml/sqlsrv_native_moodle_database.php
@@
-1241,7
+1241,7
@@
class sqlsrv_native_moodle_database extends moodle_database {
$arr = func_get_args();
foreach ($arr as $key => $ele) {
- $arr[$key] = ' CAST('.$ele.' AS VARCHAR(255)) ';
+ $arr[$key] = ' CAST('.$ele.' AS
N
VARCHAR(255)) ';
}
$s = implode(' + ', $arr);