ios - DBAccess: commit is not working -


i'm using dbaccess project. in project, 1 dbobject's commit not working. dbobject message like:

#import <dbaccess/dbaccess.h>  @interface messageobject : dbobject  @property (strong) nsstring *to; @property (strong) nsstring *from; @property (strong) nsstring *message; @property (strong) nsstring *_id; @property int messagetype; @property long long messagesenttime;  @end  #import "messageobject.h"  @implementation messageobject @dynamic to, from, message, _id; @dynamic messagetype; @dynamic messagesenttime; @end 

for object, when commit, commit not working. other object's commit working. can me? in adv.

it might worth implementing error method on dbdelegate.

- (void)databaseerror:(dberror *)error {     nslog(@"error >> %@\nsql >> %@", error.errormessage, error.sqlquery); } 

that show "from" reserved word in sqlite , have used column name.

the current error generated follows.

(lldb) **po error.errormessage** near "from": syntax error  (lldb) **po error.sqlquery** select messageobject.from from, messageobject._id _id, messageobject.id id, messageobject.messagesenttime messagesenttime, messageobject.message message, messageobject.to to, messageobject.messagetype messagetype messageobject  

now, said, think can fix pretty changing how name fields in selection queries, change property name. in future versions fix problem stop error occurring.

thanks


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -