Exemplo n.º 1
0
        public IDbStatement Prepare2(IDbHandle db, string query)
        {
            var    internalDbHandle = (DbHandle)db;
            IntPtr stmt;
            Result r = SQLiteApiWin32Internal.sqlite3_prepare16_v2(internalDbHandle.DbPtr, query, -1, out stmt, IntPtr.Zero);

            if (r != Result.OK)
            {
                throw SQLiteException.New(r, Errmsg16(internalDbHandle));
            }
            return(new DbStatement(stmt));
        }