public function testFillPreparedRaw() { $sql = $this->db->fillPrepared("SELECT * FROM cur WHERE cur_title='This_\\&_that,_WTF\\?\\!'", array('"user"', "Slash's Dot")); $this->assertEquals("SELECT * FROM cur WHERE cur_title='This_&_that,_WTF?!'", $sql); }
/** * @param DatabaseBase $db * @param sql\Breakdown $breakDown * @return mixed */ public function injectParams($db, sql\Breakdown $breakDown) { return $db->fillPrepared($breakDown->getSql(), $breakDown->getParameters()); }