{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/21198","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/21198/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/21198/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/21198/events","html_url":"https://github.com/laravel/framework/issues/21198","id":257957211,"number":21198,"title":"Issue with laravel 5.3+ DB Grammar when working with Oracle (int -> string in Grammar) ","user":{"login":"ircop","id":2287048,"avatar_url":"https://avatars1.githubusercontent.com/u/2287048?v=4","gravatar_id":"","url":"https://api.github.com/users/ircop","html_url":"https://github.com/ircop","followers_url":"https://api.github.com/users/ircop/followers","following_url":"https://api.github.com/users/ircop/following{/other_user}","gists_url":"https://api.github.com/users/ircop/gists{/gist_id}","starred_url":"https://api.github.com/users/ircop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ircop/subscriptions","organizations_url":"https://api.github.com/users/ircop/orgs","repos_url":"https://api.github.com/users/ircop/repos","events_url":"https://api.github.com/users/ircop/events{/privacy}","received_events_url":"https://api.github.com/users/ircop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-15T07:58:57Z","updated_at":"2017-09-15T08:18:50Z","closed_at":null,"author_association":"NONE","body":"- Laravel Version: 5.3\r\n- PHP Version: 7.1\r\n- Database Driver & Version: Oracle 11.2\r\n\r\n### Description:\r\n\r\nWhen joining some oracle table with raw numeric value, Laravel, starting from 5.3, mutates integer value into string. Oracle throws an ORA-00904 (invalid identifier) error.\r\n\r\n\r\n### Steps To Reproduce:\r\n\r\n```php\r\n$query->join('SOMETABLE', function($join){\r\n    $join->on('SOMETABLE.A', '=', 'BASETABLE.B');\r\n    $join->on('SOMETABLE.B', '=', 123456);  # <---- here is the problem\r\n});\r\n```\r\n\r\nError Message : ORA-00904: \"50136901\": invalid identifier\r\n\r\nThe problem is in Query\\Builder::toSql() -> Database\\Grammar::wrap( $value, $prefixAlias = false )\r\n\r\nThe wrap() result is always string, even if integer given.\r\n\r\nThe simple way is to patch it with something like \" if( is_int($value) ) return $value \"\r\n"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/329714785","html_url":"https://github.com/laravel/framework/issues/21198#issuecomment-329714785","issue_url":"https://api.github.com/repos/laravel/framework/issues/21198","id":329714785,"user":{"login":"decadence","id":1434668,"avatar_url":"https://avatars0.githubusercontent.com/u/1434668?v=4","gravatar_id":"","url":"https://api.github.com/users/decadence","html_url":"https://github.com/decadence","followers_url":"https://api.github.com/users/decadence/followers","following_url":"https://api.github.com/users/decadence/following{/other_user}","gists_url":"https://api.github.com/users/decadence/gists{/gist_id}","starred_url":"https://api.github.com/users/decadence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decadence/subscriptions","organizations_url":"https://api.github.com/users/decadence/orgs","repos_url":"https://api.github.com/users/decadence/repos","events_url":"https://api.github.com/users/decadence/events{/privacy}","received_events_url":"https://api.github.com/users/decadence/received_events","type":"User","site_admin":false},"created_at":"2017-09-15T08:18:50Z","updated_at":"2017-09-15T08:18:50Z","author_association":"CONTRIBUTOR","body":"5.3 is not supported."}}
{"actor":{"display_login":"decadence"}}