{"action":"closed","issue":{"url":"https://api.github.com/repos/crate/crate/issues/3131","labels_url":"https://api.github.com/repos/crate/crate/issues/3131/labels{/name}","comments_url":"https://api.github.com/repos/crate/crate/issues/3131/comments","events_url":"https://api.github.com/repos/crate/crate/issues/3131/events","html_url":"https://github.com/crate/crate/issues/3131","id":124258012,"number":3131,"title":"geo_point insert error","user":{"login":"notzippy","id":1387526,"avatar_url":"https://avatars.githubusercontent.com/u/1387526?v=3","gravatar_id":"","url":"https://api.github.com/users/notzippy","html_url":"https://github.com/notzippy","followers_url":"https://api.github.com/users/notzippy/followers","following_url":"https://api.github.com/users/notzippy/following{/other_user}","gists_url":"https://api.github.com/users/notzippy/gists{/gist_id}","starred_url":"https://api.github.com/users/notzippy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notzippy/subscriptions","organizations_url":"https://api.github.com/users/notzippy/orgs","repos_url":"https://api.github.com/users/notzippy/repos","events_url":"https://api.github.com/users/notzippy/events{/privacy}","received_events_url":"https://api.github.com/users/notzippy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/crate/crate/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-29T19:34:10Z","updated_at":"2016-01-07T14:20:09Z","closed_at":"2016-01-07T14:20:09Z","body":"Given table \r\ngeocity (\r\n geo geo_point\r\n)\r\nhttp Statement\r\n{\"stmt\":\"INSERT INTO \\\"geocity\\\" (\\\"geo\\\") VALUES (?) \",\r\n\"bulk_args\":[[[1,1]]]} \r\n\r\nResults in\r\n\"SQLActionException[ArrayStoreException in java.util.Arrays.copyOf(Arrays.java:3213)]\"\r\n\r\nYet the following works fine\r\n{\"stmt\":\"INSERT INTO \\\"geocity\\\" (\\\"geo\\\") VALUES (?) \",\r\n\"bulk_args\":[[\"POINT(1 1)\"]]} \r\n\r\nOn an aside it would be nice if you also supported the mapped method of inserting the geo-point..\r\n\r\nthanks\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29467486-geo_point-insert-error?utm_campaign=plugin&utm_content=tracker%2F505659&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F505659&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}