2
我使用帶有ORM的mySQL的Yii框架。當我切換到SQLite的,我突然得到了那些在其查詢別名列「列未找到」錯誤:mySQL與sqlite別名不兼容?
Querying SQL: SELECT `privateAccesses`.`project_id` AS `t1_c0`, ... FROM `project` `privateAccesses`
然後我得到:
CDbException: CDbCommand failed to prepare the SQL statement: SQLSTATE[HY000]: General error: 1 no such column: privateAccesses
所以我認爲這事做與別名..任何人都知道,如果MySQL/SQLite別名在某種程度上不兼容?想法如何解決這個問題?基本別名似乎sqlite的工作..
感謝, MRB