Convert all SQL keywords to upper case

대소문자를 섞어서 쓰고 있던 SQL 키워드들을 모두 대문자로 통일
as, and, or, like, desc 등이 소문자였음
This commit is contained in:
Kijin Sung 2018-06-30 15:42:52 +09:00
parent 6070707941
commit 83362034cd
6 changed files with 15 additions and 20 deletions

View file

@ -41,9 +41,9 @@ class JoinTable extends Table
function toString($with_value = true)
{
$part = $this->join_type . ' ' . $this->name;
$part .= $this->alias ? ' as ' . $this->alias : '';
$part .= ' on ';
$part = strtoupper($this->join_type) . ' ' . $this->name;
$part .= $this->alias ? (' AS ' . $this->alias) : '';
$part .= ' ON ';
foreach($this->conditions as $conditionGroup)
{
$part .= $conditionGroup->toString($with_value);