Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…lds of different datatypes
  • Loading branch information...
commit 283ba570c0688df1b3b8954cfb3c36ec88f626cf 1 parent 336d8c4
@ankitagarwal ankitagarwal authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/db/log.php
View
2  lib/db/log.php
@@ -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!
Please sign in to comment.
Something went wrong with that request. Please try again.