Hi,
I'm getting an exception with this Ruby code:
--------------------
require 'sqlite3'
db = SQLite3::Database.open "/tmp/foo.db"
# execute contents of file
sql = IO.read 'bug.sql'
db.execute_batch sql
db.close
-------------------------
The file bug.sql has this in it:
----------------------------
-- demonstrate bug in sqlite3 ruby gem
CREATE TABLE IF NOT EXISTS foo ( id int );
-- comment at the end causes problems
---------------------------
Sure, here is the gist:
https://gist.github.com/4375588/8791a734f853169b75dd1d1e4ee30d05e3d2c7c8