Prepare2() приватный Метод

private Prepare2 ( IntPtr db, [ sql, int numBytes, IntPtr &stmt, IntPtr pzTail ) : Result
db IntPtr
sql [
numBytes int
stmt IntPtr
pzTail IntPtr
Результат Result
Пример #1
0
        public IDbStatement Prepare2(IDbHandle db, string query)
        {
            var dbHandle = (DbHandle)db;
            var stmt     = default(Sqlite3Statement);
            var r        = SQLite3.Prepare2(dbHandle.InternalDbHandle, query, query.Length, out stmt, IntPtr.Zero);

            if (r != Result.OK)
            {
                throw SQLiteException.New(r, SQLite3.GetErrmsg(dbHandle.InternalDbHandle));
            }
            return(new DbStatement(stmt));
        }