Forum: Ruby jruby sqlite3 INSERT problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Kenneth McDonald (Guest)
on 2009-02-19 17: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.

This topic is locked and can not be replied to.