Convert to named parameters.

This commit is contained in:
Andrew McMillan 2010-03-21 21:59:36 +13:00
parent c62dd43a30
commit 75ebf3649d

View File

@ -51,9 +51,9 @@ class RRuleTest {
function SQLTest() {
$result = '';
$sql = "SELECT event_instances::timestamp AS event_date FROM event_instances(?,?) LIMIT ".$this->result_limit;
$sql = "SELECT event_instances::timestamp AS event_date FROM event_instances(:dtstart,:rrule) LIMIT ".$this->result_limit;
$start = microtime(true);
$qry = new AwlQuery($sql, $this->dtstart, $this->recur);
$qry = new AwlQuery($sql, array( ':dtstart' => $this->dtstart, ':rrule' => $this->recur) );
// printf( "%s\n", $qry->querystring);
if ( $qry->Exec("test") && $qry->rows() > 0 ) {
$i = 0;