-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels