Closed ncthuc closed 9 years ago
I found an error in this file https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php, line 351 that misses quotes table & column name in statement 'a.item_name=b.name'
'a.item_name=b.name'
$query = (new Query)->select('b.*') ->from(['a' => $this->assignmentTable, 'b' => $this->itemTable]) ->where('a.item_name=b.name') ->andWhere(['a.user_id' => (string)$userId]);
This causes error for me when using Oracle because it'll automatically turn to UPPERCASE A.ITEM_NAME=B.NAME
A.ITEM_NAME=B.NAME
I edited it to '{{a}}.{{item_name}}={{b}}.{{name}}', it works for me, but I don't want to change the source code of the framework
'{{a}}.{{item_name}}={{b}}.{{name}}'
Can you please fix this in your code?
Thanks!
I found an error in this file https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php, line 351 that misses quotes table & column name in statement
'a.item_name=b.name'
This causes error for me when using Oracle because it'll automatically turn to UPPERCASE
A.ITEM_NAME=B.NAME
I edited it to
'{{a}}.{{item_name}}={{b}}.{{name}}'
, it works for me, but I don't want to change the source code of the frameworkCan you please fix this in your code?