Discussion:
[jruby-user] jdbc-firebird
Rick F.
11 years ago
Permalink
Hi,

I cannot seem to get the Firebird driver to work from within my jruby
rails 4 app.

When doing a simple access

User.first

I get a Dynamic SQL error:

ActiveRecord::JDBCError: org.firebirdsql.jdbc.FBSQLException: GDS
Exception. 335544569. Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, column 1
&: &FIRST 1 "USER".* FROM "USER" ORDER BY "USER"."ID" ASC

Anyone have firebird working with this gem, activerecord and jruby??? Is
there some configuration gotcha I may be missing?

jruby version: 1.7.13
activerecord-jdbc-adapter 1.3.6
jdbc-firebird 2.2.4
rails 4.1.3

any help is appreciated,
Rick
--
Posted via http://www.ruby-forum.com/.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Adrian Marius P.
11 years ago
Permalink
Seems to be a Visitors issue

Here is the source for the jruby Firebird Visitor

https://github.com/jruby/activerecord-jdbc-adapter/blob/master/lib/arel/visitors/firebird.rb


and compare it with the one from MRuby

https://github.com/rowland/activerecord-fb-adapter/blob/master/lib/active_record/connection_adapters/fb_adapter.rb

I will install a jruby rvm and test the jruby version


ps: In future Firebird visitor should be pushed to Arel
--
Posted via http://www.ruby-forum.com/.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Loading...