Skip to content

System db fault in pg connection driver when use group/by #33

@majioa

Description

@majioa

I have the following error when issuing group by operation in pg connection:

> self.all.group(:inn)
=> (pry) output error: java.lang.NoSuchMethodError: org.jruby.RubyEncoding.newEncoding(Lorg/jruby/Ruby;Lorg/jcodings/Encoding;)Lorg/jruby/RubyEncoding;

That is the SQL query:

> self.all.group(:inn).to_sql
=> "SELECT \"organizations\".* FROM \"organizations\" GROUP BY \"organizations\".\"inn\""

and also I've tried it with plain sql call with the same result:

> self.connection.execute( "SELECT \"organizations\".* FROM \"organizations\" GROUP BY \"organizations\".\"inn\"")
Java::JavaLang::NoSuchMethodError: org.jruby.RubyEncoding.newEncoding(Lorg/jruby/Ruby;Lorg/jcodings/Encoding;)Lorg/jruby/RubyEncoding;
from org.jruby.pg.Connection.newPgErrorCommon(Connection.java:1434)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions