[Svn-src-all:3235] [version-2_12-dev 22136] #1984 (SQL文上の「00:00:00」がプリペアドステートメントの変数と見做されるケースが存在する)

Seasoft admin @ mail.ec-cube.net
2012年 12月 15日 (土) 16:12:58 JST


Subversion committed to /home/svn/open 22136
http://svn.ec-cube.net/open_trac/changeset/22136
┌────────────────────────────┐
│更新者 :  Seasoft                                      │
│更新日時:  2012-12-15 16:12:57 +0900 (土, 15 12月 2012)│
└────────────────────────────┘

Log:
--------------------------------------------------------
#1984 (SQL文上の「00:00:00」がプリペアドステートメントの変数と見做されるケースが存在する)
  * 応急処置

Changed:                      [U:修正,A:追加,D:削除]
--------------------------------------------------------
U   branches/version-2_12-dev/data/class/util/SC_Utils.php

変更: branches/version-2_12-dev/data/class/util/SC_Utils.php
===================================================================
--- branches/version-2_12-dev/data/class/util/SC_Utils.php	2012-12-15 04:02:21 UTC (rev 22135)
+++ branches/version-2_12-dev/data/class/util/SC_Utils.php	2012-12-15 07:12:57 UTC (rev 22136)
@@ -971,7 +971,7 @@
         $start_day = date('d', mktime(0, 0, 0, $tmp_month, $tmp_day + 1, $tmp_year));
 
         // 日付の作成
-        $start_date = sprintf('%d/%d/%d 00:00:00', $start_year, $start_month, $start_day);
+        $start_date = sprintf('%d/%d/%d', $start_year, $start_month, $start_day);
         $end_date = sprintf('%d/%d/%d 23:59:59', $end_year, $end_month, $end_day);
 
         return array($start_date, $end_date);




Svn-src-all メーリングリストの案内