Changeset 18679


Ignore:
Timestamp:
2010/06/09 12:32:08 (12 years ago)
Author:
nanasess
bzr:base-revision:
ohkouchi@loop-az.jp-20100608075258-7sje2edc0g7kxjdh
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
bzr:file-ids:

data/class/db/dbfactory/SC_DB_DBFactory_MYSQL.php 15123@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fdb%2Fdbfactory%2FSC_DB_DBFactory_MYSQL.php
bzr:mapping-version:
v4
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20100609033204-9v6c1hs88howr749
bzr:revno:
1954
bzr:revprop:branch-nick:
branches/version-2_4-dev
bzr:root:
branches/version-2_4-dev
bzr:text-parents:

data/class/db/dbfactory/SC_DB_DBFactory_MYSQL.php svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_4:18388
bzr:timestamp:
2010-06-09 12:32:04.721999884 +0900
bzr:user-agent:
bzr2.1.1+bzr-svn1.0.2
svn:original-date:
2010-06-09T03:32:04.722000Z
Message:

MySQL で SC_Query::select() を使用した場合, TRUNC 句の変換に失敗してしまう不具合修正(#750)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_4-dev/data/class/db/dbfactory/SC_DB_DBFactory_MYSQL.php

    r18388 r18679  
    243243     */ 
    244244    function sfChangeTrunc($sql){ 
    245         $changesql = eregi_replace("( TRUNC)", " TRUNCATE", $sql); 
    246         return $changesql; 
     245        if (preg_match('/TRUNCATE/i', $sql)) { 
     246            return $sql; 
     247        } 
     248        return eregi_replace("( TRUNC)", " TRUNCATE", $sql); 
    247249    } 
    248250 
Note: See TracChangeset for help on using the changeset viewer.