Пример #1
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);
            }
        }
        internal static void CheckOk(int rc)
        {
            string msg = "";

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

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