Index: src/main.c ================================================================== --- src/main.c +++ src/main.c @@ -989,10 +989,56 @@ r = nKey1-nKey2; } return r; } +#ifndef SQLITE_OMIT_UINT_COLLSEQ +/* +** The UINT collating function that compares text byte-by-byte but compares +** digits in numeric order. +*/ +static int uintCollFunc( + void *notUsed, + int nKey1, const void *pKey1, + int nKey2, const void *pKey2 +){ + const unsigned char *zA = (const unsigned char*)pKey1; + const unsigned char *zB = (const unsigned char*)pKey2; + int i=0, j=0, x; + while( imallocFailed ){ goto opendb_out; } /* Parse the filename/URI argument Index: tool/omittest.tcl ================================================================== --- tool/omittest.tcl +++ tool/omittest.tcl @@ -240,10 +240,11 @@ SQLITE_OMIT_TEMPDB \ SQLITE_OMIT_TEST_CONTROL \ SQLITE_OMIT_TRACE \ SQLITE_OMIT_TRIGGER \ SQLITE_OMIT_TRUNCATE_OPTIMIZATION \ + SQLITE_OMIT_UINT_COLLSEQ \ SQLITE_OMIT_UPSERT \ SQLITE_OMIT_UTF16 \ SQLITE_OMIT_VACUUM \ SQLITE_OMIT_VIEW \ SQLITE_OMIT_VIRTUALTABLE \