I'm trying to use QxOrm in combination with classes in namespace, but I run into a problem.
When I'm doing this on an Sqlite database:
- Code: Select all
QSqlError daoError = qx::dao::create_table<SYN::Building>();
Then I get this error:
- Code: Select all
[QxOrm] qx::QxSqlDatabase : create new database connection in thread '1936' with key '{7a17fad7-c8f8-4177-945d-b6185e801277}'
[QxOrm] execute sql query failed : CREATE TABLE SYN.Building (id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, name TEXT, street TEXT, village TEXT, postalcode SMALLINT, country TEXT)
Unable to execute statement
unknown database SYN
The problem seems to be the 'SYN.Building' construction. When I do not put the Building class in a namespace, then everything works fine.
Any ideas?
Thanks,
eli