示例#1
0
        internal static void CheckOk(sqlite3 db, int rc)
        {
            int extended = raw.sqlite3_extended_errcode(db);

            if (raw.SQLITE_OK != rc)
            {
                SQLiteException.Throw(rc, extended, raw.sqlite3_errmsg(db).utf8_to_string());
            }
        }
示例#2
0
        internal static void CheckOk(int rc)
        {
            string msg = string.Empty;

            if (SQLite3.Version.CompareTo(SQLiteVersion.Of(3007015)) >= 0)
            {
                msg = raw.sqlite3_errstr(rc).utf8_to_string();
            }

            if (raw.SQLITE_OK != rc)
            {
                SQLiteException.Throw(rc, rc, msg);
            }
        }