Beispiel #1
0
 function __construct($db, $table)
 {
     parent::__construct($db, $table);
     $table = $this->escapeIdentifier($this->tableName);
     $this->schemaBuffer = new Search_MySql_QueryBuffer($db, 2000, "ALTER TABLE {$table} ");
     $this->dataBuffer = new Search_MySql_QueryBuffer($db, 100, '-- ');
     // Null Object, replaced later
 }
Beispiel #2
0
 function testEmptyConcatWithMultiple()
 {
     $mock = $this->getMock('TikiDb');
     $table = new TikiDb_Table($mock, 'my_table');
     $this->assertEquals($table->expr('CONCAT(`a`, `b`, `c`)', array()), $table->concatFields(array('a', 'b', 'c')));
 }