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 }
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'))); }