{"action":"opened","issue":{"url":"https://api.github.com/repos/vrana/notorm/issues/115","labels_url":"https://api.github.com/repos/vrana/notorm/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/vrana/notorm/issues/115/comments","events_url":"https://api.github.com/repos/vrana/notorm/issues/115/events","html_url":"https://github.com/vrana/notorm/issues/115","id":123475044,"number":115,"title":"How to avoid TO_CHAR(date, format) being interpreted as join?","user":{"login":"brachetti","id":11609742,"avatar_url":"https://avatars.githubusercontent.com/u/11609742?v=3","gravatar_id":"","url":"https://api.github.com/users/brachetti","html_url":"https://github.com/brachetti","followers_url":"https://api.github.com/users/brachetti/followers","following_url":"https://api.github.com/users/brachetti/following{/other_user}","gists_url":"https://api.github.com/users/brachetti/gists{/gist_id}","starred_url":"https://api.github.com/users/brachetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brachetti/subscriptions","organizations_url":"https://api.github.com/users/brachetti/orgs","repos_url":"https://api.github.com/users/brachetti/repos","events_url":"https://api.github.com/users/brachetti/events{/privacy}","received_events_url":"https://api.github.com/users/brachetti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-22T12:40:19Z","updated_at":"2015-12-22T12:40:19Z","closed_at":null,"body":"I have a select like this\r\n`$risks->select(\"TO_CHAR(table.last_updated_date,'DD.MM.YYYY HH24:MI:SS') as SNAP\")->fetch();`\r\n\r\nNotOrm now compiles this to\r\n`SELECT TO_CHAR(risks.LUD,'MM.YYYY MI.SS') as SNAP FROM risks LEFT JOIN DD ON risks.DD_id = DD.id LEFT JOIN MM ON DD.MM_id = MM.id LEFT JOIN HH24 ON risks.RISK_ID = HH24.RISKS_id LEFT JOIN MI ON HH24.id = MI.HH24_id WHERE (risks.RISK_ID = 12345)`\r\n\r\nHow can I suppress this behaviour?"}}