mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
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:
parent
f613ff3b88
commit
69de8be6c1
2 changed files with 22 additions and 0 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue