Have a simple test-installation with ruby-2.1.3 rails-3.213 and activerecord-advantage-adapter-0.11. Simple read of simple emps.dbf table bumps ruby with BigDecimal conversion error:
Other operation run fine:
The table is simple:
|
I suspect that your particular use case, while simple, may not have been caught during testing. Thank you for providing the table / data. Would you also be able to edit your question and provide a bit of information regarding the code? I'll take a look and see if I can find a workaround and then pass the info to the engineering team. (If you do edit the question, please drop a comment so it notifies me - thanks) Edgar |
Hello Edgar, thanks for your answer. We are evaluating ADS for the purpose of migrating an old Clipper-App to Rails. The code is really just a one-liner - here is the code together with the output. I could not manage to attach a binary file - so here is a link to the dbf file http://www.freakout.de/fkselb/emps.dbf - good luck - by the way - we discovered more problems - ruby complains when 8-bit OEM-charset data is assigned to - when we have a documented testcase we will ask the next question.
Output:
I've not had a chance to test on a Linux Box but I did have a chance to test on Windows. What I see is that the driver was written for Ruby 1.9.3 with Active Record 3.2. One I had these in place (with arel 3.0.3) it seemed to work well. I suspect that there may be some changes to the more recent versions of Ruby / Active Record (originally it downloaded 4 I think) that may be causing your issues. Perhaps try with these and see if it resolves your two problems.
(24 Oct '14, 14:46)
Edgar Sherman
|
Dear Edgar, ruby 1.9.x/rails 3.0.x is not an option for us. Way too old. The whole adapter is not compatible with Rails4. Is there any chance that this wonderful piece of software will be maintained to support current versions? Cheers Axel Hi Akel, Unfortunately I'm not in a position to answer if it will be. I would recommend posting a suggestion on the feedback site to request support of these newer versions. http://feedback.advantagedatabase.com/
(27 Oct '14, 09:27)
Edgar Sherman
|
Since the ruby/activerecord interface is a feature of the product mentioned in the release notes it should be maintained to support current versions - rails-3.0 is more than 3 years old. i have managed to use it with rails-3.2.13/ruby-2.1.3 (last rails3 version no chance with rails4) with this patch:
|