Apply more workingness to this.

This commit is contained in:
Andrew McMillan 2009-10-27 09:11:36 +13:00
parent 1f5961e1b1
commit 179376543b

View File

@ -235,12 +235,14 @@ class AwlQuery
else $this->connection = null;
$argc = func_num_args();
$args = func_get_args();
$this->querystring = func_get_arg(0);
$this->querystring = array_shift($args);
if ( 1 < $argc ) {
$args = func_get_args();
array_shift($args);
$this->Bind($args);
if ( is_array($args[0]) )
$this->Bind($args[0]);
else
$this->Bind($args);
}
return $this;
@ -332,6 +334,22 @@ class AwlQuery
}
/**
* Return the query string we are planning to execute
*/
function QueryString() {
return $this->querystring;
}
/**
* Return the parameters we are planning to substitute into the query string
*/
function Parameters() {
return $this->bound_parameters;
}
/**
* Execute the query, logging any debugging.
*