Hi Nick!

Postgrex does a query to get all of the database types once it connects.
Maybe you can try rewriting the query yourself in a way it doesn't use
ARRAY? You may need to slightly change the code after too but you should
definitely give it a try. :)



*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D

On Tue, Jul 5, 2016 at 8:53 PM, Nick Pavlica <[email protected]> wrote:

> All,
>   I'm trying to use Elixir with CockroachDB (
> https://github.com/cockroachdb/cockroach).  They are implementing the
> Postgresql protocol for their SQL interface, but haven't implemented the
> Array type.  There is a ticket open for adding arrays, but they haven't had
> a chance to implement it yet.  I've been trying to connect with Postgrex,
> but get the following error:
>
> 11:28:55.749 [error] Postgrex.Protocol (#PID<0.157.0>) failed to connect:
> ** (Postgrex.Error) ERROR (internal_error): syntax error at or near "("
> SELECT t.oid, t.typname, t.typsend, t.typreceive, t.typoutput, t.typinput,
>        t.typelem, coalesce(r.rngsubtype, 0), ARRAY (
>                                                    ^
> Is it possible to connect without calling for an ARRAY type?  They have
> several Postgresql drivers working, so I know that it can be done :)  I've
> been looking at the Postgrex source, but haven't found a solution yet.
> Your guidance is appreciated!
>
>
> Thanks!
> --Nick
>
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-talk/e722f476-2b4a-46e1-b902-6b5315ce3c33%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-talk/e722f476-2b4a-46e1-b902-6b5315ce3c33%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-talk/CAGnRm4JGtbUMpfX1KeVWUWK6FuCrrm%2BC3wGWCrFD2LYhBmGk5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to