/ Check-in [9762ad06]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Implement sqlite3_create_collation() by invoking sqlite3_create_collation_v2() with a NULL destructor argument. This saves a little space.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 9762ad0639cca2fc1ef0573113fb613ce9e7e83e
User & Date: drh 2014-10-23 01:01:26
Context
2014-10-24
14:32
Get the likelihood() functions working on operators like BETWEEN that create virtual terms in the WHERE-clause analysis. check-in: 03d0498d user: drh tags: trunk
00:35
Add the SQLITE_ENABLE_API_ARMOR compile-time option. This is a work in progress and is not yet completely functional. check-in: c297a84b user: drh tags: api-armor
2014-10-23
01:01
Implement sqlite3_create_collation() by invoking sqlite3_create_collation_v2() with a NULL destructor argument. This saves a little space. check-in: 9762ad06 user: drh tags: trunk
2014-10-22
20:07
Disable the use of strchrnul() unless specifically enabled by compile-time options. check-in: e580470d user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to src/main.c.

  2747   2747   int sqlite3_create_collation(
  2748   2748     sqlite3* db, 
  2749   2749     const char *zName, 
  2750   2750     int enc, 
  2751   2751     void* pCtx,
  2752   2752     int(*xCompare)(void*,int,const void*,int,const void*)
  2753   2753   ){
  2754         -  int rc;
  2755         -  sqlite3_mutex_enter(db->mutex);
  2756         -  assert( !db->mallocFailed );
  2757         -  rc = createCollation(db, zName, (u8)enc, pCtx, xCompare, 0);
  2758         -  rc = sqlite3ApiExit(db, rc);
  2759         -  sqlite3_mutex_leave(db->mutex);
  2760         -  return rc;
         2754  +  return sqlite3_create_collation_v2(db, zName, enc, pCtx, xCompare, 0);
  2761   2755   }
  2762   2756   
  2763   2757   /*
  2764   2758   ** Register a new collation sequence with the database handle db.
  2765   2759   */
  2766   2760   int sqlite3_create_collation_v2(
  2767   2761     sqlite3* db,