#if !SQLITE_STANDARD\r
int n = UnsafeNativeMethods.sqlite3_close_interop(db);\r
#else\r
- ResetConnection(db);\r
- int n = UnsafeNativeMethods.sqlite3_close(db);\r
+ ResetConnection(db);\r
+ int n;\r
+ try {\r
+ n = UnsafeNativeMethods.sqlite3_close_v2(db);\r
+ } catch (EntryPointNotFoundException) {\r
+ n = UnsafeNativeMethods.sqlite3_close(db);\r
+ }\r
#endif\r
if (n > 0) throw new SqliteException(n, SQLiteLastError(db));\r
}\r