Changeset 14924


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

Legend:

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

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