Changeset 14925


Ignore:
Timestamp:
2007/06/26 13:05:53 (13 years ago)
Author:
uehara
Message:

アップロードCSV、新規登録時のバグ改修

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel/html/admin/products/upload_csv.php

    r14921 r14925  
    303303 
    304304        // ¿·µ¬ÅÐÏ¿ 
    305         $product_id = $objQuery->nextval("dtb_products", "product_id"); 
    306         $sqlval['product_id'] = $product_id; 
     305        // postgresql¤Èmysql¤È¤Ç½èÍý¤òʬ¤±¤ë 
     306        if (DB_TYPE == "pgsql") { 
     307            $product_id = $objQuery->nextval("dtb_products","product_id"); 
     308        }elseif (DB_TYPE == "mysql") { 
     309            $product_id = $objQuery->get_auto_increment("dtb_products"); 
     310        } 
     311        $sqlval['product_id'] = $product_id; 
    307312        $sqlval['create_date'] = $time; 
    308313         
Note: See TracChangeset for help on using the changeset viewer.