Re: Problems with sqlite

23 views
Skip to first unread message

David Turner

unread,
May 18, 2013, 5:01:24 AM5/18/13
to andro...@googlegroups.com
What's the error message exactly?


On Fri, May 17, 2013 at 2:35 PM, Бориславський Богдан <programer...@gmail.com> wrote:
This is my test, but i don't understand why is not work.

        sqlite3 *db;
        rc = sqlite3_open_v2("MyDb", &db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE ,0);
       if (rc)
       {
           const char* error = sqlite3_errmsg(db);
           const char* pMessage = "Error opening SQLite3 database: \n";
           ViewLog(pMessage);
           ViewLog(error);
       }
       else
       {
          const char* pMessage = "Opened MyDb.db.";
          ViewLog(pMessage);
       }

       sqlite3_close(db);

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-ndk?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages