#error produced:
#…/sqlite3/database.rb:91:in `initialize’: near "
(SQLite3::SQLException)
I have not had any problems with this before, and I can’t for the life
of me think of any changes I have made to the dbmanage file and it looks
like proper sql to me so what is going wrong
sure didn’t expect to start getting errors there out of the blue, it was
all working fine and them BAM! And again, I really can’t think of any
changes I made to this.
of me think of any changes I have made to the dbmanage file and it looks
like proper sql to me so what is going wrong
First of all that is not a proper table creation statement IMHO (no
columns defined) but maybe SQLite allows this. And then argument
“table_name” might actually contain a double quote which will break
the table creation. You should probably check, e.g. with this at the
beginning
raise sprintf(“Invalid table name: %p”, table_name) if /"/ =~ table_name
Kind regards
robert
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.