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

bad encoding concat in mssql driver

    XMLWordPrintable

Details

    Description

      $arr[$key] = ' CAST(' . $ele . ' AS VARCHAR(255)) ';

      should be NVARCHAR it seems

      dml_testcase::test_sql_concat
      Failed asserting that two strings are equal.
      — Expected
      +++ Actual
      @@ @@
      -'name├í├®├¡├│├║name3'
      +'nameßÚݾ·name3'

      C:\server\workspace\moodle25\lib\dml\tests\dml_test.php:3787
      C:\server\workspace\moodle25\lib\phpunit\classes\database_driver_testcase.php:14
      3

      To re-run:
      C:\server\workspace\moodle25\vendor\phpunit\phpunit\composer\bin\phpunit dml_testcase lib\dml\tests\dml_test.php

      Attachments

        Issue Links

          Activity

            People

              skodak Petr Skoda
              skodak Petr Skoda
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Rajesh Taneja Rajesh Taneja
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/May/13