I have a few classes, one is:
class Group {
public:
std::string displayName;
std::string description;
Permissions permissions;
Users users;
template<class Action>
void persist(Action& a)
{
dbo::field(a, displayName, "displayName");
dbo::field(a, description, "description");
dbo::hasMany(a, permissions, dbo::ManyToMany,
"Group_Permission_Link");
dbo::hasMany(a, users, dbo::ManyToMany,
"Group_User_Link");
}
};
And I run createTables(), but an exception gets thrown of a message:
near "Group": syntax error
The SQL that Wt::Dbo is passing to sqlite is:
create table Group(
id integer primary key autoincrement,
version integer not null,
displayName text not null,
description text not null
)
I am not sure what the problem is. The Blog seems to work fine...
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest