Changeset 14923


Ignore:
Timestamp:
2007/06/26 13:02:32 (13 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

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

    r14916 r14923  
    299299 
    300300        // ¿·µ¬ÅÐÏ¿ 
    301         $product_id = $objQuery->nextval("dtb_products", "product_id"); 
    302         $sqlval['product_id'] = $product_id; 
     301        // postgresql¤Èmysql¤È¤Ç½èÍý¤òʬ¤±¤ë 
     302        if (DB_TYPE == "pgsql") { 
     303            $product_id = $objQuery->nextval("dtb_products","product_id"); 
     304        }elseif (DB_TYPE == "mysql") { 
     305            $product_id = $objQuery->get_auto_increment("dtb_products"); 
     306        } 
     307         
     308        $sqlval['product_id'] = $product_id; 
    303309        $sqlval['create_date'] = $time; 
    304310         
Note: See TracChangeset for help on using the changeset viewer.