Exemplo n.º 1
0
 public function testTemporary()
 {
     $table = new CachedTable($this->schema, 'newTable');
     $this->assertFalse($table->temporary());
     $tempTable = TempTable::create($this->schema, 'blah2', self::$columns);
     $this->assertTrue($tempTable->temporary());
 }
Exemplo n.º 2
0
 public function createTable($table_name, array $columns, $temporary = false)
 {
     if (!$temporary) {
         return CachedTable::create($this, $table_name, $columns);
     } else {
         $table = TempTable::create($this, $table_name, $columns);
         $this->loadedTables[$table_name] = $table;
         return $table;
     }
 }