How to resolve the keyword conflict?

Forum for posting problems using QxOrm library

Re: How to resolve the keyword conflict?

Postby magicu » Sat Jan 21, 2012 3:58 pm

I resolve the insert problem through define User like this:

t.setName("[User]");
IxDataMember * pData = t.id(&User::id, "id");
pData->setSqlAlias("User_id_0");
pData = t.data(&User::user_name, "user_name");
pData->setSqlAlias("User_user_name_0");
pData = t.data(&User::password, "password");
pData->setSqlAlias("User_password_0");

But the following define will still cause error when insert userPtr to table:

t.setName("[User]");
IxDataMember * pData = t.id(&User::id, "id");
pData->setSqlAlias("User_id_0");
pData = t.data(&User::user_name, "[user_name]");
pData->setSqlAlias("User_user_name_0");
pData = t.data(&User::password, "[password]");
pData->setSqlAlias("User_password_0");

I don't know if it's a bug, So I deleted my last post. You'd better test by yourself. :P
magicu
 
Posts: 54
Joined: Fri Jan 20, 2012 9:51 am

Re: How to resolve the keyword conflict?

Postby QxOrm admin » Sat Jan 21, 2012 5:24 pm

I just upload a new BETA version : QxOrm 1.2.2 BETA 16.
Here is a direct link to download this BETA version : http://www.qxorm.com/version/QxOrm_1.2.2_BETA_16.zip
With this version, you don't have to define your own SQL alias into qx::register_class function, and insert, update, delete, should work correctly using special database keywords.

If you want more informations about this BETA and new features, there is a french topic here (use google traduction if you don't understand french) :
http://www.developpez.net/forums/d11578 ... or-tester/
QxOrm admin
 

Previous

Return to QxOrm - Help

Who is online

Users browsing this forum: No registered users and 4 guests

cron