mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-13 08:00:15 +00:00
Convert to named parameters.
This commit is contained in:
parent
c62dd43a30
commit
75ebf3649d
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user