Changeset 13306


Ignore:
Timestamp:
2007/05/22 22:18:43 (15 years ago)
Author:
nakanishi
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/data/class/SC_Query.php

    r13305 r13306  
    515515    } 
    516516     
     517    //»ØÄꤷ¤¿¥«¥é¥à¤Î°ìÈֺǸå¤Ë¥ì¥³¡¼¥É¤òÁÞÆþ 
    517518    function nextval($table, $colname) { 
    518519        $sql = ""; 
     
    522523            $sql = "SELECT NEXTVAL('$seqtable')"; 
    523524        }else if (DB_TYPE == "mysql") { 
    524             $sql = "SELECT last_insert_id();"; 
     525            $sql = "SELECT last_insert_id() as $colname;"; 
    525526        } 
    526527        $ret = $this->conn->getOne($sql); 
Note: See TracChangeset for help on using the changeset viewer.