History log of /external/sqlite/dist/sqlite3.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
904607b881c63fad87fd72a78602d620792b58dc 04-May-2010 Vasu Nori <vnori@google.com> add FTS3 _backward_compatibility mode to let apps use FTS1 or 2.

bug:2651952
this mode was previously available in Eclair and below. this mode was removed
by me for no particular reason in Froyo.
this change doesn't bring in any new modules into sqlite. just
allows FTS1 or 2 apps be used with FTS3 running in backward compatibility mode

Change-Id: Id5d72b440a378dd6d6703ce99b5d3d70ffd0c80f
/external/sqlite/dist/sqlite3.c
e523d00e8bab4b5218eaece5cd78b1c61d39b8bf 08-Apr-2010 Vasu Nori <vnori@google.com> sqlite should assume corruption if file header is bad

sqlite doesn't think corruption when it detects bad file header. on android,
there should be no reason to try to open a database file and find
a bad header. so, add android patch to sqlite to assume corruption
when this occurs.

Change-Id: I6b26613852b5247799af35a9c8e166b32ba697ff
/external/sqlite/dist/sqlite3.c
ebcc71fd53ce7cf46aff607df2d4bff793837176 23-Mar-2010 Vasu Nori <vnori@google.com> apply couple of bug fixes from sqlite

applying the following bug fixes
http://www.sqlite.org/src/info/82dd61fccf
Sync the database file after a rollback
http://www.sqlite.org/src/info/6f368b5448
Modify the sqlite3_log() interface and implementation so that it never
uses dynamic memory allocation - to avoid deadlocking when called
while holding the memory allocator mutex.

Change-Id: I93929d2dacd399ae9bd291404bcdf2c512691254
/external/sqlite/dist/sqlite3.c
1ce7bcafdf93c120f644c6dd01ffac098dfe327e 10-Mar-2010 Vasu Nori <vnori@google.com> remove dead code

after the following CL is submitted, check this in
Change-Id: If07d4f67facf9b5806b8cd11879bae51f8daf322

Change-Id: Ie3c20489265aebdb83657343d25f1e9ecb7f2d84
/external/sqlite/dist/sqlite3.c
049406b944167376e8973451e6a02846f26daaf3 03-Mar-2010 Vasu Nori <vnori@google.com> merge vacuum bug fix from http://www.sqlite.org/src/info/e534223435
/external/sqlite/dist/sqlite3.c
aae12b8a5af3a1ac77382b067d9ebb350fbd0644 02-Mar-2010 Vasu Nori <vnori@google.com> take # 2: update sqlite. now it builds on Mac also.

this is redoing the reverted CL
https://android-git.corp.google.com/g/#change,42672
/external/sqlite/dist/sqlite3.c
9d9edcf91e6d39f940ba1740956a12c0aef52334 02-Mar-2010 Vasu Nori <vnori@google.com> revert to old ersion until sqlite3.c builds correctly on mac

sqlite3 from DRH broke mac builds.
/external/sqlite/dist/sqlite3.c
cd1b5450506dc71940b94bc7f5a74c1cc29bb7da 26-Feb-2010 Vasu Nori <vnori@google.com> get latest sqlite from froyo branch created by richard hipp @ sqlite

this will remove a lot of android specific code from sqlite in
external/sqlite/dist.
we are getting closer to using the public domain sqlite.
******* NOTE TO REVIEWERS *********
to compare, don't use gerrit. that will compare this sqlite3.c with
the currently-checkin version, showing you the differences
between this sqlite version and the previous sqlite version.
you may not care about that.
if you just need to see what android changes to sqlite are,
then compare the following two files in this CL
sqlite3.c.orig
sqlite3.c
/external/sqlite/dist/sqlite3.c
e568ad0c5f7ad9e4a47ce79711692ff1dc145fb6 19-Feb-2010 Vasu Nori <vnori@google.com> fix to address bug:2454891

log a message until sqlite guy gives me a fix to implement logging of
such events in a more elegant way (like sqlite3_trace)
/external/sqlite/dist/sqlite3.c
64417c986e826384f8699ff635b870457a32f91e 18-Feb-2010 Vasu Nori <vnori@google.com> add more log statements to debug # 2419869 (like CL 41134)
/external/sqlite/dist/sqlite3.c
2c792c96472ae32cf23f73a315395d1a836a3cc2 18-Feb-2010 Vasu Nori <vnori@google.com> update SOURCE_ID string in sqlite3.c to print the correct version
/external/sqlite/dist/sqlite3.c
a0a270362aa5f36351f6934484652e6b45960b83 18-Feb-2010 Vasu Nori <vnori@google.com> add more log statements to help debug 2419869

this STOPSHIP CL is adding to the previous STOPSHIP CL for this class of bugs
https://android-git.corp.google.com/g/#change,40395
/external/sqlite/dist/sqlite3.c
61cde95b5db6058ae24f813bf22afaa8dbefe432 11-Feb-2010 Vasu Nori <vnori@google.com> when sqlite encounters SQLITE_MISUE error, cause segfault. STOPSHIP.

this CL wil have to be reverted before shipping. thats why the STOPSHIP
comment all over this CL.
goal is to get stacktrace to help debug http://b/2419869 because it is
intermittently occuring bug and sqlite3 doesn't give enough info
when this error occurs.
Richard Hipp of sqlite is going to send a patch that will provide additional
info when this error occurs.
/external/sqlite/dist/sqlite3.c
282bc14a4c98cfeb9c9a75b52f7c0411fc7318f8 05-Feb-2010 Vasu Nori <vnori@google.com> revert a not-so-useful CL: 36e3a0c245c8985614630de04606907832a1c3c9

that CL isn't so useful. and it introduced a bug too: http://b/issue?id=2418478
plus, it added code to sqlite3.c. need to avoid doing that wherever possible
/external/sqlite/dist/sqlite3.c
78c28328355fbe2b1d8acc6ec70b532abc508f4e 05-Feb-2010 Vasu Nori <vnori@google.com> a performance patch from sqlite authors for 3.6.22.

patch from sqlite is http://www.sqlite.org/src/ci/26cb1df735
/external/sqlite/dist/sqlite3.c
cc9b3cabf4066b55a7b8dabe59cdd6d6351eb74e 27-Jan-2010 Vasu Nori <vnori@google.com> remove temp dir to store journals - stored where the db file is at.
/external/sqlite/dist/sqlite3.c
36e3a0c245c8985614630de04606907832a1c3c9 29-Jan-2010 Vasu Nori <vnori@google.com> Add more debugging info when database close() fails.

When database close() fails, sqlite gives a cryptic message
"unable to close due to unfinalised statements".
Added more info to this message to help developer look at one of the sql
statements that is not finalized and is causing this problem.
/external/sqlite/dist/sqlite3.c
690bfc98575ebff6997f6cb2f04213f374749535 22-Jan-2010 Vasu Nori <vnori@google.com> don't need groupConcat func written for android

it has 2 bugs (1) needs to be extended to return strings longer than 1K
(2) the following bug
create table a1 (i int, j varchar(5));
insert 2 rows with j = ''
insert into a1 values(1,'');
insert into a1 values(1,'');
insert 2 rows with j = null
insert into a1 (i) values (2);
insert into a1 (i) values (2);
with original sqlite3 groupConcat func
select length(group_concat(j,' ')) from a1 where i = 1;
result is
1
with android sqlite3 groupConcat func
select length(group_concat(j,' ')) from a1 where i = 2;
result is
0
/external/sqlite/dist/sqlite3.c
f42bc645f21a407acc987793dcd5f8d6e53f828c 22-Jan-2010 Vasu Nori <vnori@google.com> on unsupported_file_format error, throw DBcorruption error (master branch)

unsupported file format error causes the database file NOT be deleted.
and that makes the app not recoverable.
by making it corruption error, db will get removed and app will get re-inited,
even though removing the DB is on corruption is extreme.
but that is a different issue..
/external/sqlite/dist/sqlite3.c
a4356a0ea71404ae414a07eafd7b95b91cc88c8c 21-Jan-2010 Vasu Nori <vnori@google.com> upgrade sqlite from 3.5.9 to 3.6.22

you should notice the following from the Android changes in 3.5.9
1. Android Changes are grouped wherever possible.

To Do
1. sqlite3_get_pager_stats() needs to be completed
2. Android change lines 63480-63482 on master branch in sqlite3.c is
not ported yet. can't see where it goes in 3.6.22 code.
/external/sqlite/dist/sqlite3.c
345cf30e665f069652f2f88ab04aa4cae0133c78 20-Jan-2010 Vasu Nori <vnori@google.com> add eventlog entry for all corruption cases in sqlite3.c.

this should help in identifying the line of code in sqlite3.c reporting
database corruption.
/external/sqlite/dist/sqlite3.c
7790ef5367fe6731048c3e3a1c067f94b321cb4d 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/external/sqlite/dist/sqlite3.c
9764acebd9bd23a5e72932accc18cbe31b47ee57 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/external/sqlite/dist/sqlite3.c
6005ac625aa553fe461b363385a8ed4a3c217a1f 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/external/sqlite/dist/sqlite3.c
6ca1d4f32da73eda41ba4925e98de4411cbe75d3 12-Jan-1970 Upstream <upstream-import@none> external/sqlite 3.6.3
/external/sqlite/dist/sqlite3.c