Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New EXPLAIN feature breaks db debug when no 'db' component setup #28

Closed
joe-meyer opened this issue Jun 16, 2015 · 3 comments
Closed

New EXPLAIN feature breaks db debug when no 'db' component setup #28

joe-meyer opened this issue Jun 16, 2015 · 3 comments
Labels
Milestone

Comments

@joe-meyer
Copy link

My scenario is such that my application uses 3 different database components, however I do not call any of these database components 'db'. When I click to go to the db panel of the debug module, I am presented with Unknown component ID: db

I also haven't tested it but I'm not sure how the new explain feature would work if you did have multiple databases and queried multiple databases. It seems like you could only have explains for a single database or you would have to somehow create multiple panels for each and it wouldn't make any sense to try and run an explain for a query from "DatabaseA" on "DatabaseB" or vice versa. Perhaps i'm overlooking something here though?

@joe-meyer
Copy link
Author

I set the following in my config and it ended up yeilding 2 database panels, but the same queries were listed on both. My database doesn't support explain so I wasn't able to test how that reacted when I did this but I imagine it probably would cause issues since i'm not sure how it knows which queries belong to which database.


    $config['modules']['debug']['panels'] = [
         [
            'class' => 'yii\debug\panels\DbPanel',
            'db' => 'mfg'
        ],
        [
            'class' => 'yii\debug\panels\DbPanel',
            'db' => 'ftdb'
        ]
    ];

@cebe cebe added the type:bug Bug label Jun 16, 2015
@cebe cebe added this to the 2.0.x milestone Jun 16, 2015
@samdark
Copy link
Member

samdark commented Sep 3, 2017

Fixed by 63c1d83

@samdark samdark closed this as completed Sep 3, 2017
@samdark samdark modified the milestones: 2.0.10, 2.0.x Sep 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants