/etc/odbc.ini: [sqlite1] Description = SQLite Driver = SQLite Database = /root/test.db Timeout = 9000 Trace = Yes TraceFile = /tmp/sqlite.log
/etc/odbcinst.ini: [SQLite] Description = SQLite ODBC Driver Driver = /usr/local/lib/libsqlite3odbc.so Setup = /usr/local/lib/libsqlite3odbc.so
openser.cfg: modparam("avpops", "db_url", "unixodbc://localhost/sqlite1")
What's the correct format for specifying the DSN when using SQLite with ODBC? SQLite doesn't use a user/password or host.
I tried the above, "unixodbc://localhost/sqlite1" and openser barfs with: ERROR:unixodbc:new_connection: failed to connect
I also tried: modparam("avpops", "db_url", "unixodbc://sqlite1")
and openser barfed with: new_db_id: Error while parsing database URL: unixodbc://sqlite1
What's the correct format? Is it even supported in Openser 1.2.0?
Thanks, Doug
____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
On Fri, March 21, 2008 9:23 pm, Douglas Garstang wrote:
[..] What's the correct format for specifying the DSN when using SQLite with ODBC? SQLite doesn't use a user/password or host.
I tried the above, "unixodbc://localhost/sqlite1" and openser barfs with: ERROR:unixodbc:new_connection: failed to connect
Hi Douglas,
i remembered that i fixed some bugs in the unixodbc driver, also related to the DSN parsing. This was commited after 1.2.0, probably in revision 3195. I actually did some testing with the 1.2 or 1.3 branch some month ago with SQLite.
I would advise you to update to 1.2.3 or, even better, to 1.3.1 if you can.
Cheers,
Henning