クエリにかなり長いエイリアスがありますが、許可されている制限を超えているとは思いません。Postgres データベースと Yii 1.1.15 を使用しています。クエリは正常に実行され、正しい値が返されますが、結果配列のエイリアスが切り取られます。
これは私のクエリです:
$query = Yii::app()->db->createCommand()
->select("mytable AS How many production lines at your company/division/location will require")
->from($table);
$result = $query->query();
私の結果は次のようになります。
$result = array(
array('How many production lines at your company/division/location wil' => string(18) "None/doesn't apply"),
array('How many production lines at your company/division/location wil' => string(18) "None"),
.....
);
私の結果配列には、「あなたの会社/部門/場所での生産ラインの数は必要ですか」ではなく、「あなたの会社/部門/場所での生産ラインの数」のキーがあることに注意してください