SQLite quits with "unknown database d" when executing the following code:
- Code: Select all
QSqlError daoError = qx::dao::create_table<d::Drug>();
As you can see, class "Drug" resides in the namespace "d". QxOrm (or maybe Qt) seems to translate the fully-qualified class name into "d.Drug" as the name for the table to create, resulting in the above error:
- Code: Select all
CREATE TABLE d.Drug (id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, name TEXT)
Is there a way to get around this? Thx for any help.