summaryrefslogtreecommitdiffstats
path: root/third_party/sqlite/misc.patch
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-07 22:45:26 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-07 22:45:26 +0000
commit956702425b4ce15cdfc433491519f1df19f3d3fc (patch)
tree9a5acbaeff259dce5c89e484dc5491eb1a62a8f4 /third_party/sqlite/misc.patch
parent0370603f58a532a61075905a315beaaca2199557 (diff)
downloadchromium_src-956702425b4ce15cdfc433491519f1df19f3d3fc.zip
chromium_src-956702425b4ce15cdfc433491519f1df19f3d3fc.tar.gz
chromium_src-956702425b4ce15cdfc433491519f1df19f3d3fc.tar.bz2
Revert 68506 - Update sqlite to 3.7.3.
BUG=none TEST=none Review URL: http://codereview.chromium.org/5626002 TBR=jhawkins@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68531 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/sqlite/misc.patch')
-rw-r--r--third_party/sqlite/misc.patch300
1 files changed, 202 insertions, 98 deletions
diff --git a/third_party/sqlite/misc.patch b/third_party/sqlite/misc.patch
index 5859349..e2f0c55 100644
--- a/third_party/sqlite/misc.patch
+++ b/third_party/sqlite/misc.patch
@@ -1,7 +1,7 @@
-diff --git a/third_party/sqlite/src/Makefile.linux-gcc b/third_party/sqlite/src/Makefile.linux-gcc
-index 1c9f24f..de9d717 100644
---- a/third_party/sqlite/src/Makefile.linux-gcc
-+++ b/third_party/sqlite/src/Makefile.linux-gcc
+Index: Makefile.linux-gcc
+===================================================================
+--- Makefile.linux-gcc 2009-09-03 13:32:06.000000000 -0700
++++ Makefile.linux-gcc 2009-07-01 12:08:39.000000000 -0700
@@ -14,7 +14,7 @@
#### The toplevel directory of the source tree. This is the directory
# that contains this "Makefile.in" and the "configure.in" script.
@@ -11,7 +11,7 @@ index 1c9f24f..de9d717 100644
#### C Compiler and options for use in building executables that
# will run on the platform that is doing the build.
-@@ -33,13 +33,13 @@ USLEEP = -DHAVE_USLEEP=1
+@@ -33,13 +33,13 @@
# appropriately:
#
#THREADSAFE = -DTHREADSAFE=1
@@ -27,7 +27,7 @@ index 1c9f24f..de9d717 100644
#### Specify any extra libraries needed to access required functions.
#
-@@ -57,8 +57,29 @@ TLIBS =
+@@ -57,8 +57,29 @@
#OPTS = -DSQLITE_DEBUG=2
#OPTS = -DSQLITE_DEBUG=1
#OPTS =
@@ -59,32 +59,32 @@ index 1c9f24f..de9d717 100644
#### The suffix to add to executable files. ".exe" for windows.
# Nothing for unix.
-@@ -91,16 +112,16 @@ SHPREFIX = lib
+@@ -91,16 +112,16 @@
#### Extra compiler options needed for programs that use the TCL library.
#
-#TCL_FLAGS =
+TCL_FLAGS = -I/usr/include/tcl8.4
#TCL_FLAGS = -DSTATIC_BUILD=1
--TCL_FLAGS = -I/home/drh/tcltk/8.5linux
-+#TCL_FLAGS = -I/home/drh/tcltk/8.5linux
- #TCL_FLAGS = -I/home/drh/tcltk/8.5win -DSTATIC_BUILD=1
+-TCL_FLAGS = -I/home/drh/tcltk/8.4linux
++#TCL_FLAGS = -I/home/drh/tcltk/8.4linux
+ #TCL_FLAGS = -I/home/drh/tcltk/8.4win -DSTATIC_BUILD=1
#TCL_FLAGS = -I/home/drh/tcltk/8.3hpux
#### Linker options needed to link against the TCL library.
#
-#LIBTCL = -ltcl -lm -ldl
--LIBTCL = /home/drh/tcltk/8.5linux/libtcl8.5g.a -lm -ldl
+-LIBTCL = /home/drh/tcltk/8.4linux/libtcl8.4g.a -lm -ldl
+LIBTCL = -ltcl8.4 -lm -ldl
-+#LIBTCL = /home/drh/tcltk/8.5linux/libtcl8.5g.a -lm -ldl
- #LIBTCL = /home/drh/tcltk/8.5win/libtcl85s.a -lmsvcrt
++#LIBTCL = /home/drh/tcltk/8.4linux/libtcl8.4g.a -lm -ldl
+ #LIBTCL = /home/drh/tcltk/8.4win/libtcl84s.a -lmsvcrt
#LIBTCL = /home/drh/tcltk/8.3hpux/libtcl8.3.a -ldld -lm -lc
-diff --git a/third_party/sqlite/src/ext/fts1/fts1.c b/third_party/sqlite/src/ext/fts1/fts1.c
-index d5429ff..8ae8df4 100644
---- a/third_party/sqlite/src/ext/fts1/fts1.c
-+++ b/third_party/sqlite/src/ext/fts1/fts1.c
-@@ -1225,10 +1225,6 @@ static int sql_step_statement(fulltext_vtab *v, fulltext_statement iStmt,
+Index: ext/fts1/fts1.c
+===================================================================
+--- ext/fts1/fts1.c 2009-09-04 13:37:41.000000000 -0700
++++ ext/fts1/fts1.c 2009-09-14 18:16:55.000000000 -0700
+@@ -1225,10 +1225,6 @@
break;
}
return rc;
@@ -95,10 +95,10 @@ index d5429ff..8ae8df4 100644
}
/* Like sql_step_statement(), but convert SQLITE_DONE to SQLITE_OK.
-diff --git a/third_party/sqlite/src/ext/icu/icu.c b/third_party/sqlite/src/ext/icu/icu.c
-index e99f142..2e2251c 100644
---- a/third_party/sqlite/src/ext/icu/icu.c
-+++ b/third_party/sqlite/src/ext/icu/icu.c
+Index: ext/icu/icu.c
+===================================================================
+--- ext/icu/icu.c 2009-09-03 13:32:06.000000000 -0700
++++ ext/icu/icu.c 2009-07-01 12:08:37.000000000 -0700
@@ -38,6 +38,11 @@
#include <assert.h>
@@ -111,11 +111,106 @@ index e99f142..2e2251c 100644
#ifndef SQLITE_CORE
#include "sqlite3ext.h"
SQLITE_EXTENSION_INIT1
-diff --git a/third_party/sqlite/src/src/expr.c b/third_party/sqlite/src/src/expr.c
-index 41be162..30f0434 100644
---- a/third_party/sqlite/src/src/expr.c
-+++ b/third_party/sqlite/src/src/expr.c
-@@ -775,7 +775,9 @@ static Expr *exprDup(sqlite3 *db, Expr *p, int flags, u8 **pzBuffer){
+Index: main.mk
+===================================================================
+--- main.mk 2009-09-10 12:18:17.000000000 -0700
++++ main.mk 2009-09-15 11:45:21.000000000 -0700
+@@ -69,6 +69,16 @@
+ walker.o where.o utf.o vtab.o
+
+
++LIBOBJ += fts1.o \
++ fts1_hash.o \
++ fts1_tokenizer1.o \
++ fts1_porter.o
++LIBOBJ += fts2.o \
++ fts2_hash.o \
++ fts2_icu.o \
++ fts2_porter.o \
++ fts2_tokenizer.o \
++ fts2_tokenizer1.o
+
+ # All of the source code files.
+ #
+@@ -243,6 +253,25 @@
+ $(TOP)/src/test_thread.c \
+ $(TOP)/src/test_wsd.c
+
++TESTSRC += \
++ $(TOP)/ext/fts1/fts1.c \
++ $(TOP)/ext/fts1/fts1.h \
++ $(TOP)/ext/fts1/fts1_hash.c \
++ $(TOP)/ext/fts1/fts1_hash.h \
++ $(TOP)/ext/fts1/fts1_porter.c \
++ $(TOP)/ext/fts1/fts1_tokenizer.h \
++ $(TOP)/ext/fts1/fts1_tokenizer1.c
++TESTSRC += \
++ $(TOP)/ext/fts2/fts2.c \
++ $(TOP)/ext/fts2/fts2.h \
++ $(TOP)/ext/fts2/fts2_hash.c \
++ $(TOP)/ext/fts2/fts2_hash.h \
++ $(TOP)/ext/fts2/fts2_icu.c \
++ $(TOP)/ext/fts2/fts2_porter.c \
++ $(TOP)/ext/fts2/fts2_tokenizer.h \
++ $(TOP)/ext/fts2/fts2_tokenizer.c \
++ $(TOP)/ext/fts2/fts2_tokenizer1.c
++
+ #TESTSRC += $(TOP)/ext/fts2/fts2_tokenizer.c
+ #TESTSRC += $(TOP)/ext/fts3/fts3_tokenizer.c
+
+@@ -314,8 +343,8 @@
+
+ sqlite3$(EXE): $(TOP)/src/shell.c libsqlite3.a sqlite3.h
+ $(TCCX) $(READLINE_FLAGS) -o sqlite3$(EXE) \
+- $(TOP)/src/shell.c \
+- libsqlite3.a $(LIBREADLINE) $(TLIBS) $(THREADLIB)
++ $(TOP)/src/shell.c $(SHELL_ICU) \
++ libsqlite3.a $(LIBREADLINE) $(TLIBS) $(THREADLIB) -ldl
+
+ objects: $(LIBOBJ_ORIG)
+
+@@ -447,6 +476,20 @@
+ $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/rtree/rtree.c
+
+
++
++
++fts1.o: $(TOP)/ext/fts1/fts1.c $(HDR) $(EXTHDR)
++ $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts1/fts1.c
++
++fts1_hash.o: $(TOP)/ext/fts1/fts1_hash.c $(HDR) $(EXTHDR)
++ $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts1/fts1_hash.c
++
++fts1_tokenizer1.o: $(TOP)/ext/fts1/fts1_tokenizer1.c $(HDR) $(EXTHDR)
++ $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts1/fts1_tokenizer1.c
++
++fts1_porter.o: $(TOP)/ext/fts1/fts1_porter.c $(HDR) $(EXTHDR)
++ $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts1/fts1_porter.c
++
+ # Rules for building test programs and for running tests
+ #
+ tclsqlite3: $(TOP)/src/tclsqlite.c libsqlite3.a
+@@ -484,6 +527,15 @@
+ test: testfixture$(EXE) sqlite3$(EXE)
+ ./testfixture$(EXE) $(TOP)/test/veryquick.test
+
++ftstest: testfixture$(EXE) sqlite3$(EXE)
++ ./testfixture$(EXE) $(TOP)/test/fts.test
++
++fts1test: testfixture$(EXE) sqlite3$(EXE)
++ ./testfixture$(EXE) $(TOP)/test/fts1.test
++
++fts2test: testfixture$(EXE) sqlite3$(EXE)
++ ./testfixture$(EXE) $(TOP)/test/fts2.test
++
+ sqlite3_analyzer$(EXE): $(TOP)/src/tclsqlite.c sqlite3.c $(TESTSRC) \
+ $(TOP)/tool/spaceanal.tcl
+ sed \
+Index: src/expr.c
+===================================================================
+--- src/expr.c 2009-09-08 12:16:11.000000000 -0700
++++ src/expr.c 2009-09-23 16:58:47.000000000 -0700
+@@ -804,7 +804,9 @@
}else{
int nSize = exprStructSize(p);
memcpy(zAlloc, p, nSize);
@@ -126,11 +221,11 @@ index 41be162..30f0434 100644
}
/* Set the EP_Reduced, EP_TokenOnly, and EP_Static flags appropriately. */
-diff --git a/third_party/sqlite/src/src/func.c b/third_party/sqlite/src/src/func.c
-index 8b7086f..5c56a79 100644
---- a/third_party/sqlite/src/src/func.c
-+++ b/third_party/sqlite/src/src/func.c
-@@ -1114,7 +1114,7 @@ static void trimFunc(
+Index: src/func.c
+===================================================================
+--- src/func.c 2009-09-04 13:37:42.000000000 -0700
++++ src/func.c 2009-09-14 18:18:18.000000000 -0700
+@@ -1020,7 +1020,7 @@
}
}
if( zCharSet ){
@@ -139,11 +234,11 @@ index 8b7086f..5c56a79 100644
}
}
sqlite3_result_text(context, (char*)zIn, nIn, SQLITE_TRANSIENT);
-diff --git a/third_party/sqlite/src/src/os.h b/third_party/sqlite/src/src/os.h
-index 7f17c20..6d6486f 100644
---- a/third_party/sqlite/src/src/os.h
-+++ b/third_party/sqlite/src/src/os.h
-@@ -27,6 +27,10 @@
+Index: src/os.h
+===================================================================
+--- src/os.h 2009-09-04 13:37:42.000000000 -0700
++++ src/os.h 2009-09-14 18:18:24.000000000 -0700
+@@ -29,6 +29,10 @@
** will defined to either 1 or 0. One of the four will be 1. The other
** three will be 0.
*/
@@ -154,11 +249,11 @@ index 7f17c20..6d6486f 100644
#if defined(SQLITE_OS_OTHER)
# if SQLITE_OS_OTHER==1
# undef SQLITE_OS_UNIX
-diff --git a/third_party/sqlite/src/src/os_unix.c b/third_party/sqlite/src/src/os_unix.c
-index 2b38fd6..4717d48 100644
---- a/third_party/sqlite/src/src/os_unix.c
-+++ b/third_party/sqlite/src/src/os_unix.c
-@@ -3769,6 +3769,7 @@ static int unixShmUnmap(
+Index: src/os_unix.c
+===================================================================
+--- src/os_unix.c 2009-09-10 12:14:55.000000000 -0700
++++ src/os_unix.c 2009-09-15 16:50:43.000000000 -0700
+@@ -3215,6 +3215,7 @@
********************** End sqlite3_file Methods *******************************
******************************************************************************/
@@ -166,7 +261,7 @@ index 2b38fd6..4717d48 100644
/*
** This division contains definitions of sqlite3_io_methods objects that
** implement various file locking strategies. It also contains definitions
-@@ -4055,9 +4056,16 @@ typedef const sqlite3_io_methods *(*finder_type)(const char*,unixFile*);
+@@ -3496,9 +3497,16 @@
*/
/*
@@ -184,11 +279,11 @@ index 2b38fd6..4717d48 100644
sqlite3_vfs *pVfs, /* Pointer to vfs object */
int h, /* Open file descriptor of file being opened */
int dirfd, /* Directory file descriptor */
-diff --git a/third_party/sqlite/src/src/os_win.c b/third_party/sqlite/src/src/os_win.c
-index 1be5149..b91ff48 100644
---- a/third_party/sqlite/src/src/os_win.c
-+++ b/third_party/sqlite/src/src/os_win.c
-@@ -2778,4 +2778,11 @@ int sqlite3_os_end(void){
+Index: src/os_win.c
+===================================================================
+--- src/os_win.c 2009-09-10 15:08:39.000000000 -0700
++++ src/os_win.c 2009-09-14 18:26:16.000000000 -0700
+@@ -1890,4 +1890,11 @@
return SQLITE_OK;
}
@@ -200,11 +295,11 @@ index 1be5149..b91ff48 100644
+}
+
#endif /* SQLITE_OS_WIN */
-diff --git a/third_party/sqlite/src/src/pcache.c b/third_party/sqlite/src/src/pcache.c
-index 242f307..6dec550 100644
---- a/third_party/sqlite/src/src/pcache.c
-+++ b/third_party/sqlite/src/src/pcache.c
-@@ -553,14 +553,12 @@ int sqlite3PcachePagecount(PCache *pCache){
+Index: src/pcache.c
+===================================================================
+--- src/pcache.c 2009-09-04 13:37:42.000000000 -0700
++++ src/pcache.c 2009-09-15 16:41:55.000000000 -0700
+@@ -542,14 +542,12 @@
return nPage;
}
@@ -219,11 +314,11 @@ index 242f307..6dec550 100644
/*
** Set the suggested cache-size value.
-diff --git a/third_party/sqlite/src/src/pcache.h b/third_party/sqlite/src/src/pcache.h
-index 33735d2..a9bea98 100644
---- a/third_party/sqlite/src/src/pcache.h
-+++ b/third_party/sqlite/src/src/pcache.h
-@@ -137,9 +137,7 @@ void sqlite3PcacheIterateDirty(PCache *pCache, void (*xIter)(PgHdr *));
+Index: src/pcache.h
+===================================================================
+--- src/pcache.h 2009-09-04 13:37:42.000000000 -0700
++++ src/pcache.h 2009-09-15 16:41:52.000000000 -0700
+@@ -139,9 +139,7 @@
** of the suggested cache-sizes.
*/
void sqlite3PcacheSetCachesize(PCache *, int);
@@ -233,11 +328,11 @@ index 33735d2..a9bea98 100644
#ifdef SQLITE_ENABLE_MEMORY_MANAGEMENT
/* Try to return memory used by the pcache module to the main memory heap */
-diff --git a/third_party/sqlite/src/src/shell.c b/third_party/sqlite/src/src/shell.c
-index c5aa40c..0c2adde 100644
---- a/third_party/sqlite/src/src/shell.c
-+++ b/third_party/sqlite/src/src/shell.c
-@@ -2525,6 +2525,18 @@ int main(int argc, char **argv){
+Index: src/shell.c
+===================================================================
+--- src/shell.c 2009-09-04 13:37:43.000000000 -0700
++++ src/shell.c 2009-09-15 11:32:08.000000000 -0700
+@@ -3007,6 +3007,18 @@
int i;
int rc = 0;
@@ -256,11 +351,11 @@ index c5aa40c..0c2adde 100644
Argv0 = argv[0];
main_init(&data);
stdin_is_interactive = isatty(0);
-diff --git a/third_party/sqlite/src/src/sqlite3ext.h b/third_party/sqlite/src/src/sqlite3ext.h
-index 0d37bbe..1530676 100644
---- a/third_party/sqlite/src/src/sqlite3ext.h
-+++ b/third_party/sqlite/src/src/sqlite3ext.h
-@@ -370,9 +370,15 @@ struct sqlite3_api_routines {
+Index: src/sqlite3ext.h
+===================================================================
+--- src/sqlite3ext.h 2009-09-03 13:32:06.000000000 -0700
++++ src/sqlite3ext.h 2009-09-15 11:34:43.000000000 -0700
+@@ -372,9 +372,15 @@
#define sqlite3_next_stmt sqlite3_api->next_stmt
#define sqlite3_sql sqlite3_api->sql
#define sqlite3_status sqlite3_api->status
@@ -277,11 +372,11 @@ index 0d37bbe..1530676 100644
+#endif /* SQLITE_CORE */
+
#endif /* _SQLITE3EXT_H_ */
-diff --git a/third_party/sqlite/src/src/test_autoext.c b/third_party/sqlite/src/src/test_autoext.c
-index 6b1e297..8ff02e1 100644
---- a/third_party/sqlite/src/src/test_autoext.c
-+++ b/third_party/sqlite/src/src/test_autoext.c
-@@ -15,7 +15,9 @@
+Index: src/test_autoext.c
+===================================================================
+--- src/test_autoext.c 2009-09-03 13:32:06.000000000 -0700
++++ src/test_autoext.c 2009-09-15 18:14:35.000000000 -0700
+@@ -17,7 +17,9 @@
#include "sqlite3ext.h"
#ifndef SQLITE_OMIT_LOAD_EXTENSION
@@ -291,11 +386,24 @@ index 6b1e297..8ff02e1 100644
/*
** The sqr() SQL function returns the square of its input value.
-diff --git a/third_party/sqlite/src/src/os_symbian.cc b/third_party/sqlite/src/src/os_symbian.cc
-new file mode 100644
-index 0000000..5b86338
---- /dev/null
-+++ b/third_party/sqlite/src/src/os_symbian.cc
+Index: src/quick.test
+===================================================================
+--- test/quick.test 2009-09-04 13:37:44.000000000 -0700
++++ test/quick.test 2009-09-15 11:34:54.000000000 -0700
+@@ -58,6 +58,9 @@
+ crash7.test
+ delete3.test
+ fts3.test
++ fts.test
++ fts1.test
++ fts2.test
+ fuzz.test
+ fuzz3.test
+ fuzz_malloc.test
+Index: src/os_symbian.cc
+===================================================================
+--- src/os_symbian.cc 1969-12-31 16:00:00.000000000 -0800
++++ src/os_symbian.cc 2009-07-01 12:08:37.000000000 -0700
@@ -0,0 +1,579 @@
+// Copyright 2008, Google Inc.
+//
@@ -876,11 +984,10 @@ index 0000000..5b86338
+}
+
+#endif /* OS_SYMBIAN*/
-diff --git a/third_party/sqlite/src/src/shell_icu_linux.c b/third_party/sqlite/src/src/shell_icu_linux.c
-new file mode 100644
-index 0000000..8194db5
---- /dev/null
-+++ b/third_party/sqlite/src/src/shell_icu_linux.c
+Index: src/shell_icu_linux.c
+===================================================================
+--- src/shell_icu_linux.c 1969-12-31 16:00:00.000000000 -0800
++++ src/shell_icu_linux.c 2009-09-17 13:48:49.000000000 -0700
@@ -0,0 +1,26 @@
+/* Copyright 2007 Google Inc. All Rights Reserved.
+**/
@@ -908,11 +1015,10 @@ index 0000000..8194db5
+ udata_setFileAccess(UDATA_ONLY_PACKAGES, &err);
+ return err == U_ZERO_ERROR;
+}
-diff --git a/third_party/sqlite/src/src/shell_icu_win.c b/third_party/sqlite/src/src/shell_icu_win.c
-new file mode 100644
-index 0000000..afea472
---- /dev/null
-+++ b/third_party/sqlite/src/src/shell_icu_win.c
+Index: src/shell_icu_win.c
+===================================================================
+--- src/shell_icu_win.c 1969-12-31 16:00:00.000000000 -0800
++++ src/shell_icu_win.c 2009-09-09 12:29:11.000000000 -0700
@@ -0,0 +1,34 @@
+/* Copyright 2007 Google Inc. All Rights Reserved.
+**/
@@ -948,11 +1054,10 @@ index 0000000..afea472
+
+ return 1;
+}
-diff --git a/third_party/sqlite/src/test/fts.test b/third_party/sqlite/src/test/fts.test
-new file mode 100644
-index 0000000..031f547
---- /dev/null
-+++ b/third_party/sqlite/src/test/fts.test
+Index: test/fts.test
+===================================================================
+--- test/fts.test 1969-12-31 16:00:00.000000000 -0800
++++ test/fts.test 2009-07-01 12:08:39.000000000 -0700
@@ -0,0 +1,61 @@
+#
+# May you do good and not evil.
@@ -1015,11 +1120,10 @@ index 0000000..031f547
+
+set sqlite_open_file_count 0
+really_finish_test
-diff --git a/third_party/sqlite/src/test/fts1.test b/third_party/sqlite/src/test/fts1.test
-new file mode 100644
-index 0000000..1ddb19f
---- /dev/null
-+++ b/third_party/sqlite/src/test/fts1.test
+Index: test/fts1.test
+===================================================================
+--- test/fts1.test 1969-12-31 16:00:00.000000000 -0800
++++ test/fts1.test 2009-07-01 12:08:39.000000000 -0700
@@ -0,0 +1,61 @@
+#
+# May you do good and not evil.