mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Update 쿼리에서 alias 기본 값 사용 안 함
This commit is contained in:
parent
e0514110af
commit
ecda6ddcb8
2 changed files with 10 additions and 4 deletions
|
|
@ -65,7 +65,7 @@ class DBQueryParser extends BaseParser
|
|||
{
|
||||
$table = new DBQuery\Table;
|
||||
$table->name = trim($tag['name']);
|
||||
$table->alias = trim($tag['alias']) ?: $table->name;
|
||||
$table->alias = trim($tag['alias']) ?: null;
|
||||
$table->ifvar = trim($tag['if']) ?: null;
|
||||
}
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ class DBQueryParser extends BaseParser
|
|||
$table->join_conditions = self::_parseConditions($tag->conditions);
|
||||
}
|
||||
}
|
||||
$query->tables[$table->alias] = $table;
|
||||
$query->tables[$table->alias ?: $table->name] = $table;
|
||||
}
|
||||
|
||||
// Load index hints.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue