Exemple #1
0
        internal override DateTime GetDateTime(SqliteStatement stmt, int index)
        {
#if !SQLITE_STANDARD
            int len;
            return(ToDateTime(UnsafeNativeMethods.sqlite3_column_text_interop(stmt._sqlite_stmt, index, out len), len));
#else
            return(ToDateTime(UnsafeNativeMethods.sqlite3_column_text(stmt._sqlite_stmt, index), -1));
#endif
        }
Exemple #2
0
        internal override string GetText(SqliteStatement stmt, int index)
        {
#if !SQLITE_STANDARD
            int len;
            return(UTF8ToString(UnsafeNativeMethods.sqlite3_column_text_interop(stmt._sqlite_stmt, index, out len), len));
#else
            return(UTF8ToString(UnsafeNativeMethods.sqlite3_column_text(stmt._sqlite_stmt, index), -1));
#endif
        }