Changeset fec9f11 in github


Ignore:
Timestamp:
Jun 4, 2012 4:13:42 AM (12 months ago)
Author:
Aleksander Machniak <alec@…>
Branches:
release-0.8
Children:
9c8ff86
Parents:
9ad0810
git-author:
Aleksander Machniak <alec@…> (06/04/12 04:11:24)
git-committer:
Aleksander Machniak <alec@…> (06/04/12 04:13:42)
Message:

Modify CONCAT() arguments, because + operator requires them to be of type varchar (#1488505)
With SQL Server 2012 we can use just CONCAT(), but we need to support older versions

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    r3a6ca5b rfec9f11  
    22=========================== 
    33 
     4- Fix SQL query for contacts listing on MS SQL Server (#1488505) 
    45- Update to TinyMCE 3.5.2 
    56- Fix window.resize handler on IE8 and Opera (#1488453) 
  • program/include/rcube_mdb2.php

    r4387537 rfec9f11  
    649649            case 'sqlsrv': 
    650650                $delim = ' + '; 
     651                // Modify arguments, because + operator requires them to be of type varchar (#1488505) 
     652                // with SQL Server 2012 we can use just CONCAT(), but we need to support older versions 
     653                foreach ($args as $idx => $arg) { 
     654                    $args[$idx] = "CAST($arg AS varchar)"; 
     655                } 
    651656                break; 
    652657            default: 
Note: See TracChangeset for help on using the changeset viewer.