Changeset 16905


Ignore:
Timestamp:
2007/12/11 13:49:18 (16 years ago)
Author:
satou
Message:

[ペイジェント決済モジュール]
SQLでのMAX値取得において、テキスト型を数値型に変換して取得する必要がある。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/beta/data/downloads/module/mdl_paygent/mdl_paygent.inc

    r16836 r16905  
    698698    $objQuery = new SC_Query(); 
    699699     
     700    if (DB_TYPE == "pgsql") $col = "cast(memo10 AS int4)"; 
     701    elseif (DB_TYPE == "mysql") $col = "cast(memo10 AS SIGNED)"; 
     702    $notice_id = $objQuery->max("dtb_order", $col, "memo01 = ?", array(MDL_PAYGENT_ID)); 
     703     
     704    $objQuery->begin(); 
     705     
     706    // ¥¹¥Æ¡¼¥¿¥¹¤Î¼èÆÀ 
    700707    $i = 0; 
    701     $notice_id = $objQuery->max("dtb_order", "memo10", "memo01 = ?", array(MDL_PAYGENT_ID)); 
    702      
    703     $objQuery->begin(); 
    704      
    705     // ¥¹¥Æ¡¼¥¿¥¹¤Î¼èÆÀ 
    706708    while($i < 1000) { 
    707709        $arrRet = sfGetPaymentStatus($objPaygent, $arrSend); 
Note: See TracChangeset for help on using the changeset viewer.