sqlite.patch 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. Index: Makefile.in
  2. --- Makefile.in.orig 2008-08-05 21:58:48 +0200
  3. +++ Makefile.in 2008-08-07 09:09:15 +0200
  4. @@ -178,6 +178,30 @@
  5. LIBOBJ = $(OBJS$(USE_AMALGAMATION))
  6. +# FTS1 support
  7. +ifdef FTS1
  8. +TCC += -DSQLITE_ENABLE_FTS1 -I$(TOP)/ext/fts1
  9. +LIBOBJ += fts1.lo fts1_hash.lo fts1_porter.lo fts1_tokenizer1.lo
  10. +endif
  11. +
  12. +# FTS2 support
  13. +ifdef FTS2
  14. +TCC += -DSQLITE_ENABLE_FTS2 -I$(TOP)/ext/fts2
  15. +LIBOBJ += fts2.lo fts2_hash.lo fts2_porter.lo fts2_tokenizer1.lo
  16. +endif
  17. +
  18. +# FTS3 support
  19. +ifdef FTS3
  20. +TCC += -DSQLITE_ENABLE_FTS3 -I$(TOP)/ext/fts3
  21. +LIBOBJ += fts3.lo fts3_hash.lo fts3_porter.lo fts3_icu.lo fts3_tokenizer1.lo fts3_tokenizer.lo
  22. +endif
  23. +
  24. +# RTREE support
  25. +ifdef RTREE
  26. +TCC += -DSQLITE_ENABLE_RTREE -I$(TOP)/ext/rtree
  27. +LIBOBJ += rtree.lo
  28. +endif
  29. +
  30. # All of the source code files.
  31. #
  32. SRC = \
  33. @@ -764,3 +788,38 @@
  34. sqlite3.dll: $(REAL_LIBOBJ) sqlite3.def
  35. $(TCC) -shared -o $@ sqlite3.def \
  36. -Wl,"--strip-all" $(REAL_LIBOBJ)
  37. +
  38. +fts1.lo: $(TOP)/ext/fts1/fts1.c $(HDR)
  39. + $(LTCOMPILE) -c $(TOP)/ext/fts1/fts1.c
  40. +fts1_hash.lo: $(TOP)/ext/fts1/fts1_hash.c $(HDR)
  41. + $(LTCOMPILE) -c $(TOP)/ext/fts1/fts1_hash.c
  42. +fts1_porter.lo: $(TOP)/ext/fts1/fts1_porter.c $(HDR)
  43. + $(LTCOMPILE) -c $(TOP)/ext/fts1/fts1_porter.c
  44. +fts1_tokenizer1.lo: $(TOP)/ext/fts1/fts1_tokenizer1.c $(HDR)
  45. + $(LTCOMPILE) -c $(TOP)/ext/fts1/fts1_tokenizer1.c
  46. +
  47. +fts2.lo: $(TOP)/ext/fts2/fts2.c $(HDR)
  48. + $(LTCOMPILE) -c $(TOP)/ext/fts2/fts2.c
  49. +fts2_hash.lo: $(TOP)/ext/fts2/fts2_hash.c $(HDR)
  50. + $(LTCOMPILE) -c $(TOP)/ext/fts2/fts2_hash.c
  51. +fts2_porter.lo: $(TOP)/ext/fts2/fts2_porter.c $(HDR)
  52. + $(LTCOMPILE) -c $(TOP)/ext/fts2/fts2_porter.c
  53. +fts2_tokenizer1.lo: $(TOP)/ext/fts2/fts2_tokenizer1.c $(HDR)
  54. + $(LTCOMPILE) -c $(TOP)/ext/fts2/fts2_tokenizer1.c
  55. +
  56. +fts3.lo: $(TOP)/ext/fts3/fts3.c $(HDR)
  57. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3.c
  58. +fts3_hash.lo: $(TOP)/ext/fts3/fts3_hash.c $(HDR)
  59. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_hash.c
  60. +fts3_icu.lo: $(TOP)/ext/fts3/fts3_icu.c $(HDR)
  61. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_icu.c
  62. +fts3_porter.lo: $(TOP)/ext/fts3/fts3_porter.c $(HDR)
  63. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_porter.c
  64. +fts3_tokenizer.lo: $(TOP)/ext/fts3/fts3_tokenizer.c $(HDR)
  65. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_tokenizer.c
  66. +fts3_tokenizer1.lo: $(TOP)/ext/fts3/fts3_tokenizer1.c $(HDR)
  67. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_tokenizer1.c
  68. +
  69. +rtree.lo: $(TOP)/ext/rtree/rtree.c $(HDR)
  70. + $(LTCOMPILE) -c $(TOP)/ext/rtree/rtree.c
  71. +
  72. Index: sqlite3.pc.in
  73. --- sqlite3.pc.in.orig 2008-07-16 17:50:43 +0200
  74. +++ sqlite3.pc.in 2008-08-07 09:09:15 +0200
  75. @@ -8,6 +8,5 @@
  76. Name: SQLite
  77. Description: SQL database engine
  78. Version: @VERSION@
  79. -Libs: -L${libdir} -lsqlite3
  80. -Libs.private: @LIBS@
  81. +Libs: -L${libdir} -lsqlite3 @LIBS@
  82. Cflags: -I${includedir}
  83. -----------------------------------------------------------------------------
  84. Upstream Vendor CVS Patches (can be removed with SQLite 3.6.2)
  85. Index: src/build.c
  86. --- src/build.c 2008/08/04 04:39:49 1.493
  87. +++ src/build.c 2008/08/06 13:47:41 1.494
  88. @@ -2136,6 +2136,7 @@
  89. ExprList *pToCol, /* Columns in the other table */
  90. int flags /* Conflict resolution algorithms. */
  91. ){
  92. + sqlite3 *db = pParse->db;
  93. #ifndef SQLITE_OMIT_FOREIGN_KEY
  94. FKey *pFKey = 0;
  95. Table *p = pParse->pNewTable;
  96. @@ -2143,10 +2144,8 @@
  97. int i;
  98. int nCol;
  99. char *z;
  100. - sqlite3 *db;
  101. assert( pTo!=0 );
  102. - db = pParse->db;
  103. if( p==0 || pParse->nErr || IN_DECLARE_VTAB ) goto fk_end;
  104. if( pFromCol==0 ){
  105. int iCol = p->nCol-1;