Forum: Ruby unsupported file format (SQLite3)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fc43656e2496d795fc1cb50d0afef24c?d=identicon&s=25 Ian (Guest)
on 2006-04-12 18:14
 I'm running sqlite3-ruby 1.1.0 and sqlite 3.3.4 on 2 linux machines. I
create a (small, single table) database on 1 machine, and I can re-open
it and work with it fine on that machine.

I copy it over to the other and can do:
zdb = SQLite3::Database.new( zf )
but then it crashes on the next line:
z = zdb.execute("select * from Data")
with:

/usr/local/lib/ruby/site_ruby/1.8/sqlite3/errors.rb:94:in `check':
unsupported file format (SQLite3::SQLException)
from /usr/local/lib/ruby/site_ruby/1.8/sqlite3/statement.rb:70:in
`initialize'
from /usr/local/lib/ruby/site_ruby/1.8/sqlite3/database.rb:183:in
`prepare'
from /usr/local/lib/ruby/site_ruby/1.8/sqlite3/database.rb:210:in
`execute'
from f.rb:9

The sqlite3 cl tool handles it fine, so does Mono.

Any help much appreciated.
This topic is locked and can not be replied to.