Skip to content

Commit

Permalink
doc: unicode extension does not work with load_extension()
Browse files Browse the repository at this point in the history
  • Loading branch information
nalgeon committed Dec 12, 2021
1 parent 88e6ebe commit 22d8521
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/unicode.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ Overrides the default NOCASE case-insensitive collation sequence to support UTF-

Has no external dependencies (like libicu). Adapted from [sqlite3_unicode](https://github.com/Zensey/sqlite3_unicode) by Anton Litvinov.

⚠️ This extension cannot be loaded via `load_extension()` SQL function due to SQLite restrictions. Quoting the [docs](https://sqlite.org/lang_corefunc.html#load_extension):

> The load_extension() function will fail if the extension attempts to modify or delete an SQL function or collating sequence. The extension can add new functions or collating sequences, but cannot modify or delete existing functions or collating sequences because those functions and/or collating sequences might be used elsewhere in the currently running SQL statement. To load an extension that changes or deletes functions or collating sequences, use the `sqlite3_load_extension()` C-language API.
It works via SQLite CLI `.load` command, though.

## Usage

Before:
Expand Down

0 comments on commit 22d8521

Please sign in to comment.