On 22/04/2009 10:29 PM, anna_shahinyan wrote:
> Thanks,
>
> I have created NSString and added the id value, then for creating
> statement I have converted NSString to const char* by UTF8String
> but the it seems it does no t work as sqlite3_prepare_v2 does not return
> SQLITE_OK.
Anna, show us
"anna_shahinyan"
wrote in
message news:23175323.p...@talk.nabble.com
> I have created NSString and added the id value, then for creating
> statement I have converted NSString to const char* by UTF8String
> but the it seems it does no t work as sqlite3_prepare_v2 does not
bind_int.
>
> Finally, sqlite3_step would return SQLITE_DONE when there are no
> records, not SQLITE_NOTFOUND.
>
> Igor Tandetnik
>
>
>
> ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
"anna_shahinyan"
wrote in
message news:23171280.p...@talk.nabble.com
> I have tried the following but does not help:
>
>sqlite3_stmt *stmt;
>const char *sql_check = "SELECT * FROM MY_DATABASE WHERE id=?";
>NSString *name = nil;
>
-
View this message in context:
http://www.nabble.com/Find-in-SQLite-database-tp23171280p23171280.html
Sent from the SQLite mailing list archive at Nabble.com.
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
5 matches
Mail list logo