Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/SQLite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3018,7 +3018,7 @@ public IEnumerable<T> ExecuteDeferredQuery<T> (TableMapping map)
BindingFlags.NonPublic | BindingFlags.Static).MakeGenericMethod (map.MappedType);
}

for (int i = 0; i < cols.Length; i++) {
for (int i = 0; i < cols.Length; i++) {
var name = SQLite3.ColumnName16 (stmt, i);
cols[i] = map.FindColumn (name);
if (cols[i] != null)
Expand Down Expand Up @@ -4442,7 +4442,11 @@ public enum ConfigOption : int
Serialized = 3
}

#if ENABLE_IL2CPP && !UNITY_EDITOR
const string LibraryPath = "__Internal";
#else
const string LibraryPath = "sqlite3";
#endif

#if !USE_CSHARP_SQLITE && !USE_WP8_NATIVE_SQLITE && !USE_SQLITEPCL_RAW
[DllImport(LibraryPath, EntryPoint = "sqlite3_threadsafe", CallingConvention=CallingConvention.Cdecl)]
Expand Down Expand Up @@ -4478,8 +4482,10 @@ public enum ConfigOption : int
[DllImport(LibraryPath, EntryPoint = "sqlite3_config", CallingConvention=CallingConvention.Cdecl)]
public static extern Result Config (ConfigOption option);

#if NETFX_CORE
[DllImport(LibraryPath, EntryPoint = "sqlite3_win32_set_directory", CallingConvention=CallingConvention.Cdecl, CharSet=CharSet.Unicode)]
public static extern int SetDirectory (uint directoryType, string directoryPath);
#endif

[DllImport(LibraryPath, EntryPoint = "sqlite3_busy_timeout", CallingConvention=CallingConvention.Cdecl)]
public static extern Result BusyTimeout (IntPtr db, int milliseconds);
Expand Down