Domanda

We are using the SQLite ODBC driver from: http://www.ch-werner.de/sqliteodbc/

I was attempting to create an FTS table via code and was unsuccessful with the error: System.Data.Odbc.OdbcException: ERROR [HY000] no such module: rtree (1)

If I use System.Data.SQLite ADO.NET driver it works fine, but due to some issues I'm not going to go into, I'd like to use the ODBC driver.

Does anyone know of a way to create the FTS table via the ODBC driver?

The SQL we are currenty using is: (or something similar)

create virtual table if not exists SEARCH_TABLE using rtree (TABLE_ROW, COLUMN_NAME, SEARCH_VALUE);
È stato utile?

Soluzione

That ODBC driver has been compiled without FTS.

You have to use System.Data.SQLite, or to recompile the ODBC driver with a changed configuration.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top