Skip to content

System db fault in pg connection driver when use regexp match #34

@majioa

Description

@majioa

I have the following error when issuing a regexp match operation in pg connection:

model.where("? ~* #{field}", value.text).order(code: :desc).to_sql
# => "SELECT \"purchases\".* FROM \"purchases\" WHERE ('c2b32596-c0cc-4157-b007-1c3dbcf5f4be' ~* source_guid)  ORDER BY \"purchases\".\"code\" DESC"

the error text:

output error: java.lang.NoSuchMethodError: org.jruby.RubyEncoding.newEncoding(Lorg/jruby/Ruby;Lorg/jcodings/Encoding;)Lorg/jruby/RubyEncoding;

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