From b49dd05def38fcfafabb7cd320a74e672d1d5567 Mon Sep 17 00:00:00 2001 From: Alexandre Roux Date: Sat, 12 Oct 2024 18:54:43 +0200 Subject: [PATCH] fix issue #1133 --- sqflite/README.md | 1 + sqflite/doc/version.md | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/sqflite/README.md b/sqflite/README.md index 9a3ccfc9..1ba5320a 100644 --- a/sqflite/README.md +++ b/sqflite/README.md @@ -365,3 +365,4 @@ thread is blocked while in a transaction... * [Notes about Desktop support](https://github.com/tekartik/sqflite/blob/master/sqflite/doc/desktop_support.md) * [Notes about Encryption support](https://github.com/tekartik/sqflite/blob/master/sqflite/doc/encryption_support.md) * [Notes about Web support](https://github.com/tekartik/sqflite/blob/master/sqflite/doc/web_support.md) +* [Notes about SQLite versions](https://github.com/tekartik/sqflite/blob/master/sqflite/doc/version.md) as some features may not be available depending on the SQLite version. diff --git a/sqflite/doc/version.md b/sqflite/doc/version.md index 42d19b6e..757bab7d 100644 --- a/sqflite/doc/version.md +++ b/sqflite/doc/version.md @@ -13,7 +13,15 @@ which should give a version formatted like this: 3.22.0 ``` -Unfortunately the version of SQLite depends on the OS version. +Unfortunately the version of SQLite depends on the OS version as sqflite +uses the SQLite version available on the platform. + +Some features may not be available depending on the SQLite version. +For example `UPSERT` statement (`INSERT INTO ..... ON CONFLICT UPDATE SET`) is only available starting from SQLite 3.24.0 so +is not available on iOS 11.0 or android 10 (API Level 29). +Check the [SQLite documentation](https://www.sqlite.org/lang_UPSERT.html) for more information on this topic. + +And check the available SQLite version on the platform you are targeting. You could get a more recent version using [`sqflite_common_ffi`](https://pub.dev/packages/sqflite_common_ffi).