From: Oleg B. <ph...@ma...> - 2005-08-30 17:33:20
|
On Tue, Aug 30, 2005 at 10:21:17AM -0700, Donnal Walter wrote: > db_filename = os.path.abspath('mydata.db') > if os.path.exists(db_filename): > os.unlink(db_filename) > connection_string = 'sqlite:' + '/' + db_filename Now yor URI is something like sqlite:/\path\to\mydata.db Looks very wrong from the parser point of view. It expects sqlite:///path/to/mydata.db For in-memory databases use sqlite:/:memory: Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |