Example #1
0
 /**
  * Tests insertedID()
  */
 public function testInsertedID()
 {
     $this->assertSame(mysql_insert_id(), DB::insertedID());
 }
Example #2
0
 public function act()
 {
     $result = DB::pureQuery((string) $this);
     switch ($this->type) {
         case self::select:
             return $result;
         case self::delete:
         case self::update:
             return DB::affectedRows();
         case self::insert:
             return DB::insertedID();
     }
 }