Hi,

you can not use extensions with the sqlite driver shipped with Qt 
(extension loading is disabled by default).
You have to build the driver yourself (described in Qt docs).

Jan


Am 26.06.2010 20:55, schrieb Sam Carleton:
> I have created a little extension function that I would like to load into my
> Qt program, so I am using the function load_extension, but it always returns
> false.  I am currently hard coding the path:
>
>      QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
>      db.setDatabaseName(systemDB);
>      QSqlQuery query(db);
>      bool result = query.exec("load_extension(\'C:\\{development
> path}\\PromenadeSqlite3\\Debug\\PromenadeSqlite3.dll\')");
>
> So what I am doing wrong?
>
> Sam
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to