History log of /external/sqlite/dist/sqlite3.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c82acac4e67711e8d9289b572d334298aeb5d806 20-Apr-2012 Jeff Brown <jeffbrown@google.com> Upgrade to SQLite 3.7.11.

Bug: 6176510
Change-Id: I482e980b3377a9606fc23e72fd25d0c648f718d4
/external/sqlite/dist/sqlite3.c
3ab5bec554013c655c8d7439b708ba1380c8eef8 01-Mar-2012 Jeff Brown <jeffbrown@google.com> Use fdatasync() to improve performance.

Linux has a working fdatasync() so we should use it!
This change alone improves performance by around 20% by reducing
the number of synchronous I/O writes of irrelevant metadata
changes.

Change-Id: Iebe0c32a7e018ec0ced2347b7d62b2b7dc5aa376
/external/sqlite/dist/sqlite3.c
e667f09e2450fbe896a8faadf8ba534094dce7e5 20-Jan-2012 Jeff Brown <jeffbrown@google.com> Remove custom SQLITE_UNCLOSED error code.

This error code was introduced at some point to help track when
a database could not be closed because a statement was not finalized.
Now that the DB wrappers have been rewritten, it is technically no longer
possible for this to happen, so we can remove this.

Change-Id: Ia3c8167a0af522c852adbbd15c83c3c8f5732b26
/external/sqlite/dist/sqlite3.c
af4ab8b27c84e71dcdd6edf9e05967a3f9c3e5f2 20-Jan-2012 Jeff Brown <jeffbrown@google.com> Fix pread64 / pwrite64 signatures for Bionic.

Change-Id: I67183b854c34e9436ff604d0fd73b4ec8ee414f2
/external/sqlite/dist/sqlite3.c
90ed05d921d6ed7f12012d9786d53f57fafee51a 20-Jan-2012 Jeff Brown <jeffbrown@google.com> Upgrade SQLite to 3.7.10.

Ported all original Android-specific patches.

Change-Id: I2c5801a92d783e2c5cba72147d9fb777ad7c8443
/external/sqlite/dist/sqlite3.c
6620e5283fe46ea3561525133d97f009bab7658d 25-Feb-2011 Vasu Nori <vnori@google.com> more sqlite logging and handling of EINTR

Change-Id: Iecba43846cb2eef28261303043484f142a67f924
/external/sqlite/dist/sqlite3.c
eadd0b9d4c7c73acc90491f7408fc0061cd2b1a7 20-Feb-2011 Vasu Nori <vnori@google.com> bug:3353077 posible fix from sqlite authors..

downloaded from
http://www.sqlite.org/sqlite-amalgamation-374-201102200340.zip
Change-Id: Ia82628469b4c3646e0964934178b60fa7083ee76
/external/sqlite/dist/sqlite3.c
7546d48226eb4d3ee0644e76aca96b38d4be6704 18-Feb-2011 Paul Westbrook <pwestbro@google.com> Turn down the walTrace logs

Change-Id: Ibeca4fcaeaec84e471d6b5191aabb13df609464a
/external/sqlite/dist/sqlite3.c
7682afb1de5a51e0c77840411cbcef05d733020c 17-Feb-2011 Paul Westbrook <pwestbro@google.com> Enable sqlite wal logging

This will help us track down bug: 3353077

Change-Id: I394a86908e8a534fbba1bbe21c6a450d95dbce9e
/external/sqlite/dist/sqlite3.c
95c34edce550d0869113085e0cd1b6b09e8fe38b 05-Jan-2011 Vasu Nori <vnori@google.com> latest and stable version of sqlite

this most probably will be sqlite for HC - unless some serious bugs come up
with this version.
Change-Id: Ib7d9023c861025fd28492ae133d21fc479c0c891
/external/sqlite/dist/sqlite3.c
de2b3240539802d409a25760d5cec9d4ebfd6686 30-Sep-2010 Vasu Nori <vnori@google.com> latest sqlite version from http://www.sqlite.org/draft/download.html

Change-Id: Ie6f1f5aaa1c3fe73af0fd71be5e749c1544ad684
/external/sqlite/dist/sqlite3.c
5b048aea8927cc0747debab2c0c5b618d9871985 04-Sep-2010 Vasu Nori <vnori@google.com> when dbclose fails, raise specific error from sqlite

the current error raised by sqlite - SQLITE_BUSY - is not helpful

Change-Id: Idbeed81b5b7349059e467b33a8641abf0b4aaeff
/external/sqlite/dist/sqlite3.c
e402679d640df63f301e5a42ce847764608a8b1d 13-Aug-2010 Vasu Nori <vnori@google.com> add Change-Id:If9542ae913b7ab90d1524c6e247fd64c4f8319e0 to master

this change got removed somewhere between Feb/2010 and froyo release.

Change-Id: Ic9e6673bd12d3197086db36d5d8689b6ca893dd7
/external/sqlite/dist/sqlite3.c
ebc6b24ff37b903195b37f143a5791c9f02be8df 07-Jul-2010 Vasu Nori <vnori@google.com> latest sqlite with fix for WAL-caued corruption

Change-Id: I40056f72e4eecf8cbc39d91933cc604ab0c361c1
/external/sqlite/dist/sqlite3.c
176bf03af2edfb2a45b66dcb5daf822cc50c499e 29-Jun-2010 Vasu Nori <vnori@google.com> latest sqlite WAL code with fix for schema changes bug

Change-Id: I6ceffb2b2513de699774483b5e75d7a5dfedb9df
/external/sqlite/dist/sqlite3.c
71504cf29d6d55df7d2aac17ecb160f7e5470553 17-Jun-2010 Vasu Nori <vnori@google.com> sqlite with write-ahead-logging changes. alpha/beta quality

note to reviewers: this checkin is to see if write-ahead-logging
could work for android. this sqlite3 version still has bugs
but still checking in - to start testing the feature.

Change-Id: Ic401c78299e88fa864fe1adb345268b12457cac0
/external/sqlite/dist/sqlite3.c
d86d9905ede0a2a313e349e4d0b4ba43b64cf8c3 16-Jun-2010 Jim Shuma <jshuma@google.com> Revert "sqlite3 write-ahead-logging. alpha/beta quality code being checked-in"

This reverts commit 187750b12c5011b4ebfb35e76c12d50a52047227.
/external/sqlite/dist/sqlite3.c
187750b12c5011b4ebfb35e76c12d50a52047227 15-Jun-2010 Vasu Nori <vnori@google.com> sqlite3 write-ahead-logging. alpha/beta quality code being checked-in

why am I checking in alpha quality code? this is one of the latest code
drops from Richard Hipp (of sqlite.org) who is still developing this feature.
testing this feature to see if it will work for us.

Change-Id: Id64f1c5718cdaa04a8194bd7eeb374027c6c2cb0
/external/sqlite/dist/sqlite3.c
cf253ad93d73d548ac61115890b3b4c0943fc2d4 11-Jun-2010 Vasu Nori <vnori@google.com> move some android code out of sqlite3.c

do this check in android_database_SQLiteDatabase.cpp
so that we have less of android-specific code in sqlite3.c

Change-Id: I334286a1a377b962b1a97dd2af00e194f035090e
/external/sqlite/dist/sqlite3.c
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