Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/294.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/62.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 转换为postgres后出现Yii权限模块错误_Php_Mysql_Postgresql_Yii_Rights - Fatal编程技术网

Php 转换为postgres后出现Yii权限模块错误

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

我已将我的应用程序数据库从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,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标准就是这么说的——大小写折叠在不带引号的标识符上,保留在带引号的标识符上