Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
majioa opened this issue Jul 4, 2016 · 1 comment
Open

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

majioa opened this issue Jul 4, 2016 · 1 comment

Comments

@majioa
Copy link

majioa commented Jul 4, 2016

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;
@qnet-herwin
Copy link

And again: The same as #32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants