{"action":"created","issue":{"url":"https://api.github.com/repos/cockroachdb/cockroach/issues/6526","repository_url":"https://api.github.com/repos/cockroachdb/cockroach","labels_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/6526/labels{/name}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/6526/comments","events_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/6526/events","html_url":"https://github.com/cockroachdb/cockroach/issues/6526","id":153224982,"number":6526,"title":"Error using crystal pg client","user":{"login":"teodor-pripoae","id":393437,"avatar_url":"https://avatars.githubusercontent.com/u/393437?v=3","gravatar_id":"","url":"https://api.github.com/users/teodor-pripoae","html_url":"https://github.com/teodor-pripoae","followers_url":"https://api.github.com/users/teodor-pripoae/followers","following_url":"https://api.github.com/users/teodor-pripoae/following{/other_user}","gists_url":"https://api.github.com/users/teodor-pripoae/gists{/gist_id}","starred_url":"https://api.github.com/users/teodor-pripoae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teodor-pripoae/subscriptions","organizations_url":"https://api.github.com/users/teodor-pripoae/orgs","repos_url":"https://api.github.com/users/teodor-pripoae/repos","events_url":"https://api.github.com/users/teodor-pripoae/events{/privacy}","received_events_url":"https://api.github.com/users/teodor-pripoae/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-05T12:47:31Z","updated_at":"2016-05-05T13:57:52Z","closed_at":null,"body":"Version and error:\r\n\r\n```\r\nE160505 15:33:42.230941 util/log/clog.go:998  [config] file created at: 2016/05/05 15:33:42\r\nE160505 15:33:42.230941 util/log/clog.go:998  [config] running on machine: Teodors-MacBook-Pro-2\r\nE160505 15:33:42.230941 util/log/clog.go:998  [config] binary: CockroachDB beta-20160428 (darwin amd64, built 2016/05/05 12:06:18, go1.6.1)\r\nE160505 15:33:42.230941 util/log/clog.go:998  [config] arguments: [cockroach start]\r\nE160505 15:33:42.230941 util/log/clog.go:998  line format: [IWEF]yymmdd hh:mm:ss.uuuuuu file:line msg\r\nE160505 15:33:42.230940 server/server.go:319  sql/pgwire/types.go:206: unsupported type *parser.DDecimal\r\n```\r\n\r\nServer breaks during connection open. I'm using [this](https://github.com/will/crystal-pg) driver.\r\n\r\n```crystal\r\nrequire \"pg\"\r\n\r\nDB = PG.connect(\"postgres://root:@localhost:26257/bank\")\r\n\r\nputs DB.exec(\"select * from accounts\")\r\n```\r\n\r\nError on client side:\r\n\r\n```\r\nserver closed the connection unexpectedly\r\n\tThis probably means the server terminated abnormally\r\n\tbefore or while processing the request.\r\n (PG::ResultError)\r\n[4310150850] *CallStack::unwind:Array(Pointer(Void)) +82\r\n[4310150753] *CallStack#initialize<CallStack>:Array(Pointer(Void)) +17\r\n[4310150712] *CallStack::new:CallStack +40\r\n[4310264441] *Exception@Exception#initialize<PG::ResultError, String>:CallStack +41\r\n[4310264366] *PG::ResultError#initialize<PG::ResultError, Pointer(Void), PG::LibPQ::ExecStatusType>:CallStack +62\r\n[4310264274] *PG::ResultError::new<Pointer(Void), PG::LibPQ::ExecStatusType>:PG::ResultError +114\r\n[4310261008] *PG::Connection#check_status<PG::Connection, Pointer(Void), Bool>:Nil +176\r\n[4310260222] *PG::Connection#libpq_get_result<PG::Connection>:Pointer(Void) +158\r\n[4310260055] *PG::Connection#libpq_exec<PG::Connection, String, Array(Array(JSON::Type) | Bool | Float32 | Float64 | Hash(String, JSON::Type) | Int32 | Int64 | String | Time | Nil)>:Pointer(Void) +1607\r\n[4310258423] *PG::Connection#exec<PG::Connection, Array(Array(JSON::Type) | Bool | Float32 | Float64 | Hash(String, JSON::Type) | Int32 | Int64 | String | Time | Nil), String, Array(Array(JSON::Type) | Bool | Float32 | Float64 | Hash(String, JSON::Type) | Int32 | Int64 | String | Time | Nil)>:PG::Result(Array(Array(JSON::Type) | Bool | Float32 | Float64 | Hash(String, JSON::Type) | Int32 | Int64 | String | Time | Nil)) +23\r\n[4310258382] *PG::Connection#exec<PG::Connection, String>:PG::Result(Array(Array(JSON::Type) | Bool | Float32 | Float64 | Hash(String, JSON::Type) | Int32 | Int64 | String | Time | Nil)) +62\r\n[4310134990] __crystal_main +4846\r\n[4310143416] main +40\r\n```"},"comment":{"url":"https://api.github.com/repos/cockroachdb/cockroach/issues/comments/217161620","html_url":"https://github.com/cockroachdb/cockroach/issues/6526#issuecomment-217161620","issue_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/6526","id":217161620,"user":{"login":"tamird","id":1535036,"avatar_url":"https://avatars.githubusercontent.com/u/1535036?v=3","gravatar_id":"","url":"https://api.github.com/users/tamird","html_url":"https://github.com/tamird","followers_url":"https://api.github.com/users/tamird/followers","following_url":"https://api.github.com/users/tamird/following{/other_user}","gists_url":"https://api.github.com/users/tamird/gists{/gist_id}","starred_url":"https://api.github.com/users/tamird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamird/subscriptions","organizations_url":"https://api.github.com/users/tamird/orgs","repos_url":"https://api.github.com/users/tamird/repos","events_url":"https://api.github.com/users/tamird/events{/privacy}","received_events_url":"https://api.github.com/users/tamird/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T13:57:51Z","updated_at":"2016-05-05T13:57:51Z","body":"Looks like crystal is asking for binary encoding for decimals, which we\nhaven't implemented. @mjibson?\n\nOn Thu, May 5, 2016 at 8:47 AM, Teodor Pripoae <notifications@github.com>\nwrote:\n\n> Version and error:\n>\n> E160505 15:33:42.230941 util/log/clog.go:998  [config] file created at: 2016/05/05 15:33:42\n> E160505 15:33:42.230941 util/log/clog.go:998  [config] running on machine: Teodors-MacBook-Pro-2\n> E160505 15:33:42.230941 util/log/clog.go:998  [config] binary: CockroachDB beta-20160428 (darwin amd64, built 2016/05/05 12:06:18, go1.6.1)\n> E160505 15:33:42.230941 util/log/clog.go:998  [config] arguments: [cockroach start]\n> E160505 15:33:42.230941 util/log/clog.go:998  line format: [IWEF]yymmdd hh:mm:ss.uuuuuu file:line msg\n> E160505 15:33:42.230940 server/server.go:319  sql/pgwire/types.go:206: unsupported type *parser.DDecimal\n>\n> Server breaks during connection open. I'm using this\n> <https://github.com/will/crystal-pg> driver.\n>\n> require \"pg\"\n> DB = PG.connect(\"postgres://root:@localhost:26257/bank\")\n> puts DB.exec(\"select * from accounts\")\n>\n> Error on client side:\n>\n> server closed the connection unexpectedly\n>     This probably means the server terminated abnormally\n>     before or while processing the request.\n>  (PG::ResultError)\n> [4310150850] *CallStack::unwind:Array(Pointer(Void)) +82\n> [4310150753] *CallStack#initialize<CallStack>:Array(Pointer(Void)) +17\n> [4310150712] *CallStack::new:CallStack +40\n> [4310264441] *Exception@Exception#initialize<PG::ResultError, String>:CallStack +41\n> [4310264366] *PG::ResultError#initialize<PG::ResultError, Pointer(Void), PG::LibPQ::ExecStatusType>:CallStack +62\n> [4310264274] *PG::ResultError::new<Pointer(Void), PG::LibPQ::ExecStatusType>:PG::ResultError +114\n> [4310261008] *PG::Connection#check_status<PG::Connection, Pointer(Void), Bool>:Nil +176\n> [4310260222] *PG::Connection#libpq_get_result<PG::Connection>:Pointer(Void) +158\n> [4310260055] *PG::Connection#libpq_exec<PG::Connection, String, Array(Array(JSON::Type) | Bool | Float32 | Float64 | Hash(String, JSON::Type) | Int32 | Int64 | String | Time | Nil)>:Pointer(Void) +1607\n> [4310258423] *PG::Connection#exec<PG::Connection, Array(Array(JSON::Type) | Bool | Float32 | Float64 | Hash(String, JSON::Type) | Int32 | Int64 | String | Time | Nil), String, Array(Array(JSON::Type) | Bool | Float32 | Float64 | Hash(String, JSON::Type) | Int32 | Int64 | String | Time | Nil)>:PG::Result(Array(Array(JSON::Type) | Bool | Float32 | Float64 | Hash(String, JSON::Type) | Int32 | Int64 | String | Time | Nil)) +23\n> [4310258382] *PG::Connection#exec<PG::Connection, String>:PG::Result(Array(Array(JSON::Type) | Bool | Float32 | Float64 | Hash(String, JSON::Type) | Int32 | Int64 | String | Time | Nil)) +62\n> [4310134990] __crystal_main +4846\n> [4310143416] main +40\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/cockroachdb/cockroach/issues/6526>\n>\n"}}