{"action":"opened","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/12014","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/12014/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/12014/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/12014/events","html_url":"https://github.com/yiisoft/yii2/issues/12014","id":167454037,"number":12014,"title":"Incorrect quoting","user":{"login":"khvalov","id":2668527,"avatar_url":"https://avatars.githubusercontent.com/u/2668527?v=3","gravatar_id":"","url":"https://api.github.com/users/khvalov","html_url":"https://github.com/khvalov","followers_url":"https://api.github.com/users/khvalov/followers","following_url":"https://api.github.com/users/khvalov/following{/other_user}","gists_url":"https://api.github.com/users/khvalov/gists{/gist_id}","starred_url":"https://api.github.com/users/khvalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khvalov/subscriptions","organizations_url":"https://api.github.com/users/khvalov/orgs","repos_url":"https://api.github.com/users/khvalov/repos","events_url":"https://api.github.com/users/khvalov/events{/privacy}","received_events_url":"https://api.github.com/users/khvalov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-25T20:10:02Z","updated_at":"2016-07-25T20:10:02Z","closed_at":null,"body":"### What steps will reproduce the problem?\r\nIncorrect quoting for group by \r\n`hotels=\\app\\models\\Hotels::find() ->select('hotels.*') ->orderby('st_makepoint(hotels.latitude,hotels.longitude)  <-> st_makepoint(40.1268,-74.9677)')->limit(10)->all();`\r\n\r\n### What is the expected result?\r\nsql statement: \r\n`select * from common.hotels order by st_makepoint(hotels.latitude,hotels.longitude)  <-> st_makepoint(40.1268,-74.9677) limit 10;`\r\n\r\n### What do you get instead?\r\n`SELECT \"hotels\".* FROM \"common\".\"hotels\" ORDER BY st_makepoint(hotels.latitude, hotels.longitude) <-> st_makepoint(40.1268, \"-74\".\"9677)\" LIMIT 10\r\n`\r\n### Additional info\r\n\r\n| Q                | A\r\n| ---------------- | ---\r\n| Yii version      | 2.0.10-dev\r\n| PHP version      | 5.5.37\r\n| Operating system | OsX\r\n"}}
{"actor":{"display_login":"khvalov"}}