diff options
Diffstat (limited to 'lang/sql/adapter/sqlite-patches/23_sequence_functions.patch')
-rw-r--r-- | lang/sql/adapter/sqlite-patches/23_sequence_functions.patch | 76 |
1 files changed, 13 insertions, 63 deletions
diff --git a/lang/sql/adapter/sqlite-patches/23_sequence_functions.patch b/lang/sql/adapter/sqlite-patches/23_sequence_functions.patch index 71480c0e..2d3c6b81 100644 --- a/lang/sql/adapter/sqlite-patches/23_sequence_functions.patch +++ b/lang/sql/adapter/sqlite-patches/23_sequence_functions.patch @@ -1,30 +1,15 @@ --- Makefile.in +++ Makefile.in -@@ -159,17 +159,17 @@ - - USE_AMALGAMATION = @USE_AMALGAMATION@ - - # Object files for the SQLite library (non-amalgamation). - # +@@ -164,7 +164,7 @@ LIBOBJS0 = alter.lo analyze.lo attach.lo auth.lo \ backup.lo bitvec.lo btmutex.lo btree.lo build.lo \ callback.lo complete.lo ctime.lo date.lo db_encrypt.lo db_pragma.lo \ - db_shell.lo delete.lo expr.lo fault.lo fkey.lo \ + db_sequence.lo db_shell.lo delete.lo expr.lo fault.lo fkey.lo \ - fts3.lo fts3_aux.lo fts3_expr.lo fts3_hash.lo fts3_icu.lo fts3_porter.lo \ - fts3_snippet.lo fts3_tokenizer.lo fts3_tokenizer1.lo fts3_write.lo \ - func.lo global.lo hash.lo \ - icu.lo insert.lo journal.lo legacy.lo loadext.lo \ - main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo \ - memjournal.lo \ - mutex.lo mutex_noop.lo mutex_os2.lo mutex_unix.lo mutex_w32.lo \ - notify.lo opcodes.lo os.lo os_os2.lo os_unix.lo os_win.lo \ -@@ -204,16 +204,17 @@ - $(TOP)/../adapter/btreeInt.h \ - $(TOP)/src/build.c \ - $(TOP)/src/callback.c \ - $(TOP)/src/complete.c \ - $(TOP)/src/ctime.c \ + fts3.lo fts3_aux.lo fts3_expr.lo fts3_hash.lo fts3_icu.lo \ + fts3_porter.lo fts3_snippet.lo fts3_tokenizer.lo fts3_tokenizer1.lo \ + fts3_tokenize_vtab.lo \ +@@ -211,6 +211,7 @@ $(TOP)/src/date.c \ $(TOP)/../adapter/db_encrypt.c \ $(TOP)/../adapter/db_pragma.c \ @@ -32,17 +17,7 @@ $(TOP)/../adapter/db_shell.c \ $(TOP)/src/delete.c \ $(TOP)/src/expr.c \ - $(TOP)/src/fault.c \ - $(TOP)/src/fkey.c \ - $(TOP)/src/func.c \ - $(TOP)/src/global.c \ - $(TOP)/src/hash.c \ -@@ -381,16 +382,17 @@ - - # Source code to the library files needed by the test fixture - # - TESTSRC2 = \ - $(TOP)/src/attach.c \ +@@ -410,6 +411,7 @@ $(TOP)/../adapter/backup.c \ $(TOP)/src/bitvec.c \ $(TOP)/../adapter/btree.c \ @@ -50,17 +25,7 @@ $(TOP)/src/build.c \ $(TOP)/src/ctime.c \ $(TOP)/src/date.c \ - $(TOP)/src/expr.c \ - $(TOP)/src/func.c \ - $(TOP)/src/insert.c \ - $(TOP)/../adapter/wal.c \ - $(TOP)/src/mem5.c \ -@@ -579,16 +581,20 @@ - db_encrypt.lo: $(TOP)/../adapter/db_encrypt.c $(HDR) \ - $(TOP)/../adapter/btreeInt.h - $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/../adapter/db_encrypt.c - - db_pragma.lo: $(TOP)/../adapter/db_pragma.c $(HDR) \ +@@ -626,6 +628,10 @@ $(TOP)/../adapter/btreeInt.h $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/../adapter/db_pragma.c @@ -71,11 +36,6 @@ db_shell.lo: $(TOP)/../adapter/db_shell.c $(HDR) \ $(TOP)/../adapter/btreeInt.h $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/../adapter/db_shell.c - - delete.lo: $(TOP)/src/delete.c $(HDR) - $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/delete.c - - expr.lo: $(TOP)/src/expr.c $(HDR) --- src/main.c +++ src/main.c @@ -55,6 +55,8 @@ @@ -87,10 +47,10 @@ #if !defined(SQLITE_OMIT_TRACE) && defined(SQLITE_ENABLE_IOTRACE) /* ** If the following function pointer is not NULL and if -@@ -1854,6 +1856,13 @@ +@@ -2532,6 +2534,13 @@ db->pDfltColl = sqlite3FindCollSeq(db, SQLITE_UTF8, "BINARY", 0); assert( db->pDfltColl!=0 ); - + + /* + ** Berkley DB customization! + ** Register any Berkeley DB specific extension functions. @@ -99,25 +59,15 @@ + /* End Berkeley DB customization. */ + /* Also add a UTF-8 case-insensitive collation sequence. */ - createCollation(db, "NOCASE", SQLITE_UTF8, SQLITE_COLL_NOCASE, 0, - nocaseCollatingFunc, 0); + createCollation(db, "NOCASE", SQLITE_UTF8, 0, nocaseCollatingFunc, 0); + --- tool/mksqlite3c.tcl +++ tool/mksqlite3c.tcl -@@ -247,16 +247,17 @@ - pager.c - wal.c - - btmutex.c - btree.c +@@ -271,6 +271,7 @@ backup.c db_encrypt.c db_pragma.c + db_sequence.c db_shell.c - + vdbemem.c - vdbeaux.c - vdbeapi.c - vdbetrace.c - vdbe.c - vdbeblob.c |