[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

jruby sqlite3 INSERT problem

Kenneth McDonald

2/19/2009 3:39:00 PM

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