-
Notifications
You must be signed in to change notification settings - Fork 570
Closed
Description
From @cmann1 on June 11, 2015 13:2
Perhaps an option to output simpler queries could be helpful when debugging, currently if you open Sql Log tab your queries will be extremely verbose:
SELECT Languages.id AS `Languages__id`, Languages.name AS `Languages__name`, Languages.code AS `Languages__code`, Languages.iso_code AS `Languages__iso_code`, Languages.is_default AS `Languages__is_default`, Languages.deleted AS `Languages__deleted` FROM languages Languages WHERE deleted = 0 ORDER BY Languages.id desc LIMIT 20 OFFSET 0All of the Table.col AS Table__col can be difficult to look through and, in my experience at least, most of the time is not needed.
Maybe the debug kit could format the query, stripping out unnecessary information such as the default AS statements.
The above statement would be a lot easier to read and still provide the same information if the SELECT part was just: Languages.id, Languages.name, ...
If you need to see the original full query maybe it could be shown when you hover over it?
Copied from original issue: cakephp/cakephp#6784