{"action":"created","issue":{"url":"https://api.github.com/repos/headius/jruby-pg/issues/12","labels_url":"https://api.github.com/repos/headius/jruby-pg/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/headius/jruby-pg/issues/12/comments","events_url":"https://api.github.com/repos/headius/jruby-pg/issues/12/events","html_url":"https://github.com/headius/jruby-pg/issues/12","id":27110008,"number":12,"title":"Incompatibilities with the pg gem","user":{"login":"chanks","id":300058,"avatar_url":"https://avatars.githubusercontent.com/u/300058?v=3","gravatar_id":"","url":"https://api.github.com/users/chanks","html_url":"https://github.com/chanks","followers_url":"https://api.github.com/users/chanks/followers","following_url":"https://api.github.com/users/chanks/following{/other_user}","gists_url":"https://api.github.com/users/chanks/gists{/gist_id}","starred_url":"https://api.github.com/users/chanks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chanks/subscriptions","organizations_url":"https://api.github.com/users/chanks/orgs","repos_url":"https://api.github.com/users/chanks/repos","events_url":"https://api.github.com/users/chanks/events{/privacy}","received_events_url":"https://api.github.com/users/chanks/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-02-07T05:11:35Z","updated_at":"2015-02-22T13:58:30Z","closed_at":"2015-02-22T11:21:22Z","body":"The following examples work as expected on the pg gem, but throw errors on jruby-pg 0.14.1.rc2-java:\r\n\r\n    require 'pg'\r\n    pg = PG::Connection.open :dbname => 'scrap'\r\n\r\n    pg.async_exec(\"select now()\", nil)\r\n    PG::Error: org.jruby.RubyNil cannot be cast to org.jruby.RubyArray\r\n        from org/jruby/pg/Connection.java:560:in `exec'\r\n        from (irb):4:in `evaluate'\r\n        from org/jruby/RubyKernel.java:1121:in `eval'\r\n        from org/jruby/RubyKernel.java:1517:in `loop'\r\n        from org/jruby/RubyKernel.java:1282:in `catch'\r\n        from org/jruby/RubyKernel.java:1282:in `catch'\r\n        from /home/chris/.rvm/rubies/jruby-1.7.5/bin/irb:13:in `(root)'\r\n\r\n    pg.async_exec(\"select $1::boolean\", [false])\r\n    PG::Error: invalid input syntax for type boolean: \"#<FalseClass:0x54fe71ff>\"\r\n        from org/jruby/pg/Connection.java:558:in `exec'\r\n        from (irb):6:in `evaluate'\r\n        from org/jruby/RubyKernel.java:1121:in `eval'\r\n        from org/jruby/RubyKernel.java:1517:in `loop'\r\n        from org/jruby/RubyKernel.java:1282:in `catch'\r\n        from org/jruby/RubyKernel.java:1282:in `catch'\r\n        from /home/chris/.rvm/rubies/jruby-1.7.5/bin/irb:13:in `(root)'\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/headius/jruby-pg/issues/comments/75436564","html_url":"https://github.com/headius/jruby-pg/issues/12#issuecomment-75436564","issue_url":"https://api.github.com/repos/headius/jruby-pg/issues/12","id":75436564,"user":{"login":"chanks","id":300058,"avatar_url":"https://avatars.githubusercontent.com/u/300058?v=3","gravatar_id":"","url":"https://api.github.com/users/chanks","html_url":"https://github.com/chanks","followers_url":"https://api.github.com/users/chanks/followers","following_url":"https://api.github.com/users/chanks/following{/other_user}","gists_url":"https://api.github.com/users/chanks/gists{/gist_id}","starred_url":"https://api.github.com/users/chanks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chanks/subscriptions","organizations_url":"https://api.github.com/users/chanks/orgs","repos_url":"https://api.github.com/users/chanks/repos","events_url":"https://api.github.com/users/chanks/events{/privacy}","received_events_url":"https://api.github.com/users/chanks/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T13:58:30Z","updated_at":"2015-02-22T13:58:30Z","body":"Thanks! Really glad that this gem is getting some attention :smiley: "}}