Forum: Ruby jruby sqlite3 INSERT problem

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.
47df9cfb356c3ee0523cc3571b169730?d=identicon&s=25 Kenneth McDonald (Guest)
on 2009-02-19 16:40
(Received via mailing list)
The following statement:

>     @db.execute("INSERT INTO log_files VALUES (NULL, ?)", @filename)

is not resulting in a persistent insert into the database (although it
is apparently resulting in a temporary insert). The problem is not a
transactional one, because if I issue a "commit" statement afterwards,
I get an error message stating that no transaction is active. Anyone
have any ideas what might be happening here? The corresponding code
from Python works just fine.

Thanks,
Ken
This topic is locked and can not be replied to.