Problem with sqlite query when using the wrapper
Posted
by user285096
on Stack Overflow
See other posts from Stack Overflow
or by user285096
Published on 2010-04-21T05:03:33Z
Indexed on
2010/04/21
5:23 UTC
Read the original article
Hit count: 233
- (IBAction)EnterButtonPressed:(id)sender {
Sqlite *sqlite = [[Sqlite alloc] init];
NSArray *paths =NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *writableDBPath = [documentsDirectory stringByAppendingPathComponent:@"test.sqlite"];
if (![sqlite open:writableDBPath])
return;
NSArray *query = [sqlite executeQuery:@"SELECT AccessCode FROM UserAccess"];
NSLog(@"%@",query);
I am getting the output as : { ( AccessCode=abcd; ) }
Where as in I want it as : abcd
I am using the wrapper from : http://th30z.netsons.org/2008/11/objective-c-sqlite-wrapper/
Please help .
© Stack Overflow or respective owner