Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/sqlite/blob/master/ext/misc/anycollseq.c # sqlite [Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `sqlite / ext / misc / anycollseq.c` 58 lines ยท 1478 bytes Raw Blame History 1 /* 2 ** 2017-04-16 3 ** 4 ** The author disclaims copyright to this source code. In place of 5 ** a legal notice, here is a blessing: 6 ** 7 ** May you do good and not evil. 8 ** May you find forgiveness for yourself and forgive others. 9 ** May you share freely, never taking more than you give. 10 ** 11 ************************************************************************* 12 ** 13 ** This file implements a run-time loadable extension to SQLite that 14 ** registers a sqlite3_collation_needed() callback to register a fake 15 ** collating function for any unknown collating sequence. The fake 16 ** collating function works like BINARY. 17 ** 18 ** This extension can be used to load schemas that contain one or more 19 ** unknown collating sequences. 20 */ 21 #include "sqlite3ext.h" 22 SQLITE_EXTENSION_INIT1 23 #include 24 25 static int anyCollFunc( 26 void *NotUsed, 27 int nKey1, const void *pKey1, 28 int nKey2, const void *pKey2 29 ){ 30 int rc, n; 31 n = nKey1