Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-19001

missing space is sql query

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.9.5
    • 1.9.4
    • Database SQL/XMLDB
    • None
    • MSSQL
    • Microsoft SQL
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE
    • Easy

      Line 448 on /user/index.php (http://cvs.moodle.org/moodle/user/index.php?annotate=1.194.2.20#l448) is missing spaces between the LIKE and the strings (i.e. LIKE'%foo%'). On MSSQL, XMLDB transforms '%foo%' to N'%foo%'. The result is LIKEN'%foo%' which causes an error.

      One solution would be to ad spaces in that line. A more general solution would be to update XMLDB so that "'%foo%'" is transformed to " N'%foo%'" (note the space).

            skodak Petr Skoda
            trick Alan Trick (Inactive)
            Sam Hemelryk Sam Hemelryk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.