Php 转换为postgres后出现Yii权限模块错误
我已将我的应用程序数据库从mysql更改为postgres,因为权限模块出现异常:Php 转换为postgres后出现Yii权限模块错误,php,mysql,postgresql,yii,rights,Php,Mysql,Postgresql,Yii,Rights,我已将我的应用程序数据库从mysql更改为postgres,因为权限模块出现异常: `CDbCommand failed to execute the SQL statement: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "authitem" does not exist LINE 2: FROM AuthItem t1 ^. The SQL statement executed was: SELECT name,t1.type
`CDbCommand failed to execute the SQL statement: SQLSTATE[42P01]: Undefined table: 7
ERROR: relation "authitem" does not exist
LINE 2: FROM AuthItem t1
^. The SQL statement executed was: SELECT
name,t1.type,description,t1.bizrule,t1.data,weight
FROM AuthItem t1
LEFT JOIN Rights t2 ON name=itemname
ORDER BY t1.type DESC, weight ASC `
我已经查看了表名,它与“区分大小写”完全相同。如果数据库中的表名是
AuthItem
而不是AuthItem
,则查询应为:
FROM "AuthItem" t1
请注意双引号
它看起来像是您正在使用的任何东西,将表创建为创建表“AuthItem”
,但随后将其查询为选择。。。从AuthItem
。这些是不同的事情。是的,这让人困惑,但SQL标准就是这么说的——大小写折叠在不带引号的标识符上,保留在带引号的标识符上