DB Classes: Add prepared statements support - Bug fix: read arguments from join conditions too.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10481 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2012-03-26 18:08:43 +00:00
parent f613ff3b88
commit 69de8be6c1
2 changed files with 22 additions and 0 deletions

View file

@ -294,6 +294,19 @@
if(!isset($this->arguments)){
$this->arguments = array();
// Join table arguments
if(count($this->tables) > 0)
{
foreach($this->tables as $table)
{
if($table->isJoinTable())
{
$args = $table->getArguments();
if($args) $this->arguments = array_merge($this->arguments, $args);
}
}
}
// Column arguments
if(count($this->columns) > 0){ // The if is for delete statements, all others must have columns
foreach($this->columns as $column){