Permalink
Browse files

MDL-33465 course: COALESCE is not cross-db compatible while using fie…

…lds of different datatypes
  • Loading branch information...
1 parent 336d8c4 commit 283ba570c0688df1b3b8954cfb3c36ec88f626cf @ankitagarwal ankitagarwal committed Jun 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/db/log.php
View
@@ -38,7 +38,7 @@
$logs = array(
array('module'=>'course', 'action'=>'user report', 'mtable'=>'user', 'field'=>$DB->sql_concat('firstname', "' '" , 'lastname')),
array('module'=>'course', 'action'=>'view', 'mtable'=>'course', 'field'=>'fullname'),
- array('module'=>'course', 'action'=>'view section', 'mtable'=>'course_sections', 'field'=>'COALESCE(name, section)'),
+ array('module'=>'course', 'action'=>'view section', 'mtable'=>'course_sections', 'field'=>'name'),
array('module'=>'course', 'action'=>'update', 'mtable'=>'course', 'field'=>'fullname'),
array('module'=>'course', 'action'=>'enrol', 'mtable'=>'course', 'field'=>'fullname'), // there should be some way to store user id of the enrolled user!
array('module'=>'course', 'action'=>'unenrol', 'mtable'=>'course', 'field'=>'fullname'), // there should be some way to store user id of the enrolled user!

0 comments on commit 283ba57

Please sign in to comment.