コード例 #1
0
ファイル: Column.class.php プロジェクト: xp-framework/rdbms
 /**
  * Returns the fragment SQL
  *
  * @param   rdbms.DBConnection conn
  * @return  string
  * @throws  rdbms.SQLStateException
  */
 public function asSql(DBConnection $conn)
 {
     if (JoinProcessor::isJoinContext()) {
         return JoinProcessor::pathToKey($this->path) . '.' . $this->name;
     } else {
         return $this->name;
     }
 }