I'm Italian but I write the response in eglish (sorry for my poor english)...
Some time ago I had a problem like your under FireBird 1.5.x and FireRuby 0.4.1 just after a db restore.
The issue was with casting function on the rails firebird adapter the error was something like "cannot cast CAST(DECIMAL(0,0)"...
I remember that I was able to solve the problem on firebird_adapter.rb executing something like sql_query.gsub!("DECIMAL(0,0)", "DECIMAL(0,18)") before the returning row.
I'm Italian but I write the response in eglish (sorry for my poor
english)...
Some time ago I had a problem like your under FireBird 1.5.x and
FireRuby 0.4.1 just after a db restore.
The issue was with casting function on the rails firebird adapter the
error was something like "cannot cast CAST(DECIMAL(0,0)"...
I remember that I was able to solve the problem on firebird_adapter.rb
executing something like sql_query.gsub!("DECIMAL(0,0)",
"DECIMAL(0,18)") before the returning row.
Hope it helps...
Il mio problema è che non viene generato nessun errore.
Semplicemente il valore è aumentato di un fattore 100.
Il problema sembra dei metodi di classe tranne find.
Ciao
mi sembra che stai comprando l’errore con versioni diverse dei vari
camponenti:
windows (ok) => FireBird 2.0 + activerecord-firebird-adapter +
FireRuby
linux (errore) => FireBird 2.1 + fb_adapter + fb
Magari sto dicendo una cosa ovvia o magari banale ma secondo me
dovresti provare a utilizzare su linux gli stessi componenti che stai
utilizzando su windows (activerecord-firebird-adapter + FireRuby)