Commit Graph

311 Commits

Author SHA1 Message Date
Shawn Wilsher
78b08dae0c Make mozIStorageConnection threadsafe - bug 448476 r=robarnold 2008-08-12 17:50:25 -07:00
Blake Kaplan
9a06360391 Avoid returning false without setting an exception. bug 429521, r=sdwilsh 2008-08-04 10:04:27 -07:00
Shawn Wilsher
35ba2ed351 Bug 429986 - Provide an option for database access to be asynchronous.
This adds a method to mozIStorageStatement to allow for a statement to execute
asynchronously and report to a callback.  For writes, this can move fsyncs,
which can be painful, off of the main thread.
r=vlad
sr=shaver
2008-07-11 15:47:33 -04:00
Shawn Wilsher
3da654e7c2 Bug 435994 - Implement ResultSet and Row for mozIStorageStatement::executeAsync
These creates the result set and row objects to be used with the async storage
API added in bug 429986.
r=vlad
sr=shaver
2008-07-11 15:47:28 -04:00
Shawn Wilsher
fb401724a9 Bug 435995 - Implement an nsIVariant object storage can use.
This creates a templated C++ class for storage to map SQLite data types to the
correct nsIVariant.
r=robarnold
r=vlad
2008-07-11 15:47:21 -04:00
Shawn Wilsher
3436da9283 Bug 444347 - Make NSPR logging a bit more useful
This adds additional NSPR logging to storage.  Logging is now done when a sql
statement is prepared, a connection is opened, and a connection is closed.
Additionally, when sqlite3_trace is called, we also log the address of the
connection so you know what queries are running on which database.  The address
is also logged at connection open so you can perform the mapping.
r=vlad
2008-07-11 15:00:58 -04:00
Arpad Borsos
140f31f75e Bug 434838 - mozStorageConnection uses nsDataHashtable when it should use nsInterfaceHashtable
This makes mozStorageConnection no longer manually AddRef and Release user
defined functions.
r=sdwilsh
r=bent
2008-07-08 18:38:25 -04:00
Shawn Wilsher
faddef0df3 Bug 434796
Remove mozIStorageStatement::initialize
r=vlad
sr=shaver
2008-06-11 11:00:09 -04:00
Shawn Wilsher
13420bfff8 Bug 434247
Remove mozStorageStatement's mStatementString
r=vlad
2008-06-11 10:25:20 -04:00
Shawn Wilsher
6691f61f94 Backed out changeset 5ccc3423220f 2008-06-04 12:55:44 -04:00
Shawn Wilsher
25797ff194 Bug 434247
Remove mozStorageStatement's mStatementString
r=vlad
2008-06-04 11:59:43 -04:00
Shawn Wilsher
194d5b36cf Bug 434244
Remove mozStorageStatement::Recreate
r=shaver
2008-06-04 11:42:15 -04:00
sdwilsh@shawnwilsher.com
b110525ed2 Bug 421482 - Firefox 3 uses fsync excessively. r=shaver, a=schrep 2008-05-23 07:56:10 -07:00
sdwilsh@shawnwilsher.com
a950b3f8c1 Bug 423273 - Fix storage API to not break old behavior. r=shaver, sr=shaver, a=shaver 2008-03-24 15:14:38 -07:00
edward.lee@engineering.uiuc.edu
a17f899193 Bug 420505 - mozStorageService isn't as threadsafe as it claims to be. p=sdwilsh, r=brendan, r=bsmedberg, b1.9=sayrer 2008-03-19 18:37:04 -07:00
dveditz@cruzio.com
58158c049e bug 423964 uninitialized variable, r=sdwilsh, a=beltzner 2008-03-19 15:55:34 -07:00
timeless@mozdev.org
0d7a5053f8 Bug 422687 encfs makes Firefox crash at start [@ libsqlite3.so@0x30fad][@ sqlite3_exec] r=sdwilsh a=beltzner 2008-03-17 14:01:16 -07:00
sayrer@gmail.com
205fa1087a Bug 419905. turn off pgo in places, mozstorage, sqlite. r=ted.mielczarek, a=beltzner 2008-02-27 12:25:45 -08:00
reed@reedloden.com
36fb40a626 Bug 263381 - "support --with-system-sqlite3 in storage builds" [p=mh+mozilla@glandium.org (Mike Hommey) r=bsmedberg a1.9=beltzner] 2008-02-22 03:25:59 -08:00
jag@tty.nl
05cdb6aefe Bug 73353: Clean up our MODULE/REQUIRES story. rs=dbaron, a=brendan 2008-02-18 00:50:04 -08:00
sdwilsh@shawnwilsher.com
e6bd117ec3 Bug 416173 - BackupDB is completely useless. r=vlad, a=damons 2008-02-09 11:05:49 -08:00
myk@mozilla.org
1f26f9ec43 bug 413589: enable fts3 (full text index) sqlite module; r=sdwilsh, a=damons 2008-01-29 15:34:19 -08:00
sdwilsh@shawnwilsher.com
c741cddc02 Bug 408914 - Disable sqlite async IO. r=vlad 2008-01-09 19:21:56 -08:00
reed@reedloden.com
21018b4c31 Bug 408914 - "Disable sqlite async IO" [p=vladimir@pobox.com (Vladimir Vukicevic [vlad]) r=sdwilsh a1.9=beltzner] 2008-01-07 00:27:25 -08:00
reed@reedloden.com
9a18e05925 Bug 409386 - "mozStorageArgvValueArray::GetString returns wrong length" [p=ondrej@allpeers.com (Ondrej Brablc) r=sdwilsh a1.9=schrep] 2007-12-21 22:09:25 -08:00
reed@reedloden.com
d342defa35 Bug 385066 - "Remove preloading from mozStorage" [p=comrade693+bmo@gmail.com (Shawn Wilsher [sdwilsh]) r=gavin a=blocking1.9+] 2007-12-17 21:34:50 -08:00
reed@reedloden.com
9e2384777a Bug 403068 - "Need a wrapper function for SQLite function sqlite3_column_decltype" [p=jzhang@aptana.com (john Zhang) r=sdwilsh a1.9=damons] 2007-11-13 00:26:45 -08:00
sdwilsh@shawnwilsher.com
10c4211388 Bug 395526 - Change assertions to real errors in mozStorageStatement.cpp. r=sspitzer, a=bzbarsky 2007-09-21 11:13:47 -07:00
sdwilsh@shawnwilsher.com
ce9577407a Bug 394789 - Add a finalize() method to mozStorageStatement. r=neil, r=sspitzer, a=bzbarsky 2007-09-18 20:26:51 -07:00
sdwilsh@shawnwilsher.com
e5e8ad570e Bug 394241 - Add a closeDatabase() method to mozStorage. r=sspitzer 2007-08-30 06:43:17 -07:00
sdwilsh@shawnwilsher.com
6644708484 Bug 393082 - Warn on unsafe usage of LIKE. r=sspitzer 2007-08-29 18:56:14 -07:00
sdwilsh@shawnwilsher.com
6248136103 Bug 383673 - mozStorageValueArray only asserts on out of bounds (and other cleanup). r=sspitzer 2007-08-28 08:29:49 -07:00
sspitzer@mozilla.org
5b0f9d75c4 fix for bug #393952: crash when I try to VACUUM (StorageUnicodeFunctions::likeFunction() should handle null aArgv[0] and aArgv[1]) r=sdwilsh 2007-08-27 21:43:10 -07:00
sspitzer@mozilla.org
4d9cc10ceb fix for bug #391697: add escapeStringForLIKE to mozIStorageStatement r=sdwilsh 2007-08-10 15:57:02 -07:00
sdwilsh@shawnwilsher.com
e725c9f1a5 Bug 391156 - mozStorage doesn't handle unicode in LIKE, UPPER, or LOWER functions (string nit follow-up patch). r=sspitzer 2007-08-10 11:33:14 -07:00
sspitzer@mozilla.org
782a2d3513 fix for bug: mozStorage doesn't handle unicode in LIKE, UPPER, or LOWER functions patch=Shawn Wilsher <sdwilsh@mozilla.com> r=sspitzer 2007-08-10 09:19:57 -07:00
sspitzer@mozilla.org
332939b510 fix for bug #385067: upgrade to latest version of sqlite (3.4.0)
patch=sdwilsh, rs=sspitzer

fix for bug #387609:  Add check for lastError in test_storage_progresshandler.js

patch=sdwish, r=sspitzer
2007-08-02 08:24:50 -07:00
flamingice@sourmilk.net
d27e310053 Bug 386179, Stop using sqlite3ApiExit, r=sdwilsh 2007-07-24 19:18:54 -07:00
sdwilsh@shawnwilsher.com
fba73878f4 Bug 388059 - Add a getColumnIndex method to mozIStorageStatement. r=sspitzer 2007-07-19 09:30:17 -07:00
sdwilsh@shawnwilsher.com
fe1aace69e Bug 388048 - mozIStorageStatement::getParameterIndexes is useless. r=sspitzer 2007-07-15 11:03:20 -07:00
sdwilsh@shawnwilsher.com
b1e2d17d25 Bug 384526 - Use sqlite3_prepare_v2 instead of sqlite3_prepare. r=sspitzer 2007-07-11 15:20:39 -07:00
sdwilsh@shawnwilsher.com
577bc46266 Backout of Bug 384526 (causes orange) 2007-07-10 10:23:36 -07:00
sdwilsh@shawnwilsher.com
f0ad954a38 Bug 384526 - Use sqlite3_prepare_v2 instead of sqlite3_prepare. r=sspitzer 2007-07-10 09:58:17 -07:00
jwalden@mit.edu
6d7584839a Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros. 2007-07-08 00:08:04 -07:00
sdwilsh@shawnwilsher.com
ae472131bb Bug 333848 - add full-featured user-defined functions and progress handlers to storage. Patch by Lev Serebryakov <blacklion@gmail.com>. r=sdwilsh 2007-07-07 14:14:51 -07:00
sdwilsh@shawnwilsher.com
f7a000c5ad Bug 386394 - Add a BackupDB method to mozIStorageConnection. r=mano 2007-07-03 13:54:36 -07:00
sdwilsh@shawnwilsher.com
45f62da930 Bug 365166 - crash [@ strlen] calling mozIStorageStatement::getColumnName of a statement created with "PRAGMA user_version" or "PRAGMA schema_version". Patch by Nickolay Ponomarev <asqueella@gmail.com>. r=sdwilsh 2007-07-02 15:36:41 -07:00
sdwilsh@shawnwilsher.com
85aaf21905 Bug 386179 - Stop using private sqlite functions. r=sspitzer 2007-07-02 10:25:36 -07:00
philringnalda@gmail.com
6e71e3b302 Bug 386366 - Add convenience method for getting the database schema version, patch by Shawn Wilsher <sdwilsh@mozilla.com>, r=sspitzer 2007-06-29 20:32:09 -07:00
sdwilsh@shawnwilsher.com
96595fe1ec Bug 385396 - Go back to vanilla sqlite files. r=mconnor 2007-06-22 14:34:14 -07:00
sdwilsh@shawnwilsher.com
b81af09a35 Bug 385431 - mozStorageAsyncIO.cpp:559: warning: unused variable 'message'. Patch by Ryan Jones <sciguyryan@gmail.com>. r=sdwilsh 2007-06-22 13:24:43 -07:00
sdwilsh@shawnwilsher.com
4b9b00f4de Bug 385262 - NOTREACHED called before logging. Patch by Ryan Jones <sciguyryan@gmail.com>. r=sdwilsh 2007-06-21 16:52:18 -07:00
sdwilsh@shawnwilsher.com
f216036065 Bug 341137 - Upgrade to latest version of sqlite (take 2). r=vladimir 2007-06-20 20:17:26 -07:00
sdwilsh@shawnwilsher.com
f9cbdb055e Backout of Bug 341137 2007-06-19 16:47:38 -07:00
sdwilsh@shawnwilsher.com
1028df0814 Bug 341137 - Upgrade to latest version of sqlite. r=vladimir 2007-06-19 12:54:01 -07:00
sdwilsh@shawnwilsher.com
0495f06ad9 Bug 363024 - Calling createInstance() on mozIStorageService crashes. r=sspitzer 2007-06-18 19:22:01 -07:00
sdwilsh@shawnwilsher.com
d96db35e43 Bug 384454 - Remove sqlite3_bind_parameter_indexes. r=sspitzer 2007-06-18 16:42:23 -07:00
sdwilsh@shawnwilsher.com
71a99118bc Bug 383543 - mozStorageService cleanup. r=sspitzer 2007-06-12 16:31:59 -07:00
sdwilsh@shawnwilsher.com
f92f905f8e Bug 383534 - mozStorageConnection ignores return values (and other cleanup). r=sspitzer 2007-06-12 16:19:34 -07:00
sdwilsh@shawnwilsher.com
2f3c92b111 Bug 381549 - mozStorageStatement ignores return values from SQLite. r=sspitzer 2007-06-12 15:01:05 -07:00
igor@mir2.org
b65d41cc03 Bug 377751: Switching JSClass.mark in XPConnect to the tracing semantics. r=jst, sr=brendan 2007-05-02 13:20:21 -07:00
igor@mir2.org
4411f6fc39 Bug 377751: removal of the commit. 2007-05-01 14:54:29 -07:00
igor@mir2.org
95a992af95 Bug 377751: JSClass instances in xpconnect use the tracing API. r=brendan, sr=jst 2007-05-01 14:06:07 -07:00
vladimir%pobox.com
31c8e763e7 b=334174, corrupted db files are not handled correctly, r=brettw 2006-07-26 18:54:12 +00:00
brettw%gmail.com
0653b5c604 Bug 334675 r=darin a=mconnor Notify users on async IO errors 2006-07-25 17:04:48 +00:00
brettw%gmail.com
50798069cc Bug 333306 r+a=vladimir Crash with pragma statements that return values 2006-05-22 19:18:00 +00:00
brettw%gmail.com
fb620b8cec Bug 336230 r+a=vlad Bug in ASYNC_SYNC 2006-05-19 16:25:40 +00:00
darin%meer.net
0318b8c707 landing patch for bug 326273 "Implement nsIThreadManager" (Mac portions by Mark Mentovai) with reviews from bienvenu, bsmedberg, bzbarsky, josh, roc, and ssieb 2006-05-10 17:30:15 +00:00
brettw%gmail.com
34c03fdee2 Bug 336314 r=darin Make storage threadsafe 2006-05-03 23:29:12 +00:00
gavin%gavinsharp.com
7661351919 Bug 334186: AsyncOpenExclusive returns freed value, patch by Ryan Flint <rflint@dslr.net>, r=brettw 2006-04-21 16:53:48 +00:00
benjamin%smedbergs.us
70a0f2207b Freeze nsIArray (requires separating nsIMutableArray into another .idl file); also removes NS_NewArray and moves do_QueryElementAt into the glue, r=darin 2006-04-12 15:43:32 +00:00
brettw%gmail.com
38955688fc Bug 331158 r=vladimir Add preload capability to storage service for sqlite pager cache. 2006-04-11 17:06:55 +00:00
bent.mozilla%gmail.com
e523eab05b Bug 328790 - Removing an extra NS_ADDREF that somehow crept into the other checkin. r=brettw, a=darin. 2006-04-07 18:09:12 +00:00
bent.mozilla%gmail.com
c3bf5cdde7 Bug 328790 - "main thread never joins with async-io thread". r=brettw. 2006-04-06 17:22:30 +00:00
dmose%mozilla.org
1b6b95ac60 Fix regression (bug 329518) which made databases created by mozStorage be UTF-16 encoded and caused other havoc. Caused by the landing of the first patch in bug 324311; fixup patch posted to that bug also. r=bryner, a181=bryner 2006-03-07 03:48:34 +00:00
dmose%mozilla.org
11b16050d0 Fix profile startup failure when non-ASCII characters are in the profile path name (bug 324311). Thanks to Nickolay Ponomarev <asqueella@gmail.com> for the patch; r=bryner, a181=bryner. 2006-03-06 05:40:32 +00:00
brettw%gmail.com
160ca2a46c Bug 327317 r=vladimir Create IndexExists function 2006-02-28 20:57:39 +00:00
brettw%gmail.com
51c96d792d Bug 327907 r=bryner Fix DB corruption problem. Truncate was using the wrong
value.
2006-02-24 22:26:56 +00:00
brettw%gmail.com
64ead40c90 Bug 327740 r=vladimir Replaces REINTERPRET_CASTs with STATIC_CASTs in
mozStorageAsyncIO.cpp
2006-02-23 19:25:40 +00:00
timeless%mozdev.org
1ce5986f6b Bug 106386 Correct misspellings in source code
r=bernd rs=brendan
2006-02-23 09:36:43 +00:00
brettw%gmail.com
6b621d1972 Bug 328212 r=vladimir Update AsyncIO with fixed bugs in sqlite tree. 2006-02-22 21:14:42 +00:00
brettw%gmail.com
d25d558be1 Bug 327567, r=darin. Storage connections should not outlive service (crasher). 2006-02-17 21:28:51 +00:00
benjamin%smedbergs.us
54c4672ea7 Bug 327638 - PRInt64 and sqlite_int64 are not automatically compatible types, r=vlad 2006-02-17 21:23:15 +00:00
brettw%gmail.com
e9d7114677 Bug 327557, r=darin. Storage service keeps references to main thread. 2006-02-17 00:36:24 +00:00
brettw%gmail.com
fc00d8e51b Bug 326334 r=vladimir, darin Multithreaded commit for storage. 2006-02-16 02:59:42 +00:00
benjamin%smedbergs.us
c028f45f24 Bug 327188 - enable places by default, r=bryner 2006-02-15 18:46:10 +00:00
brettw%gmail.com
ef9bc3d6af Bug 324994 r=bryner sr=vladimir GetString should set IsVoid when column is
null.
2006-02-07 23:10:16 +00:00
brettw%gmail.com
7c77c3a347 Bug 319453, r=vladimir: Bounds check GetBlob, return NULL if 0 size. 2005-12-07 20:52:33 +00:00
vladimir%pobox.com
f2232124e1 b=273050, storage module interface review, r=darin 2005-11-15 00:35:50 +00:00
brettw%gmail.com
c9d2ed39ae Added helper classes for C++ users to deal with transaction and statement
scope. Exposes sqlite's in-memory database capability.

bug 310636
r=bryner
2005-11-08 02:15:01 +00:00
mrbkap%gmail.com
ac604da132 bug 311024: Make sure eval grabs the right scope object. r=brendan sr=jst 2005-10-08 00:28:45 +00:00
dmose%mozilla.org
b593e1f71a Fixing build bustage by adding stub methods for the two new methods that were added to nsIXPCScriptable 2005-07-31 21:12:49 +00:00
vladimir%pobox.com
1afea82710 b=293183, implement exception support for recurrence, r=shaver 2005-06-10 01:31:48 +00:00
vladimir%pobox.com
ef962212a7 Make mozStorageStatement::Execute() use ExecuteStep(), to get the right SQLITE_SCHEMA handling, r=me 2005-05-27 20:14:09 +00:00
vladimir%pobox.com
02b491c5e1 b=293707, update storage calendar, partial (mozStorage-only) commit, r=shaver 2005-05-12 01:09:04 +00:00
vladimir%pobox.com
49d2dc81b4 b=291991, fix sqlite_schema stuff in mozStorageStatement, again r=shaver 2005-04-26 22:28:06 +00:00
vladimir%pobox.com
4205a6ed9e fix for SQLITE_SCHEMA error, as well as using multiple-named-statement binding functions 2005-04-17 21:00:50 +00:00
bsmedberg%covad.net
844ef87b25 Adding MOZILLA_INTERNAL_API to internal makefiles, bug 288626, rs=darin 2005-04-05 14:50:16 +00:00
vladimir%pobox.com
94b11d5317 Boolean logic is hard, r=me 2005-03-24 22:58:30 +00:00
vladimir%pobox.com
e5e6c1dae3 Handle SQLITE_SCHEMA correctly be retrying the statement, r=me 2005-03-24 19:59:59 +00:00
mattwillis%gmail.com
446a80de3d Fixed compile on Windows with gcc
r=shaver
2005-01-07 20:52:04 +00:00
vladimir%pobox.com
ebbbdf27da automatically reset mozStorageStatementWrapper when the statement is finished executing, to avoid havin to reset() all the time. notpartofthebuild 2004-12-09 22:34:00 +00:00
vladimir%pobox.com
30a24137d2 fix usage of snprintf to use PR_smprintf, notpartofthebuild 2004-12-09 21:42:36 +00:00
pavlov%pavlov.net
fa0f096079 fixing win32 build issues r=shaver 2004-12-09 21:22:15 +00:00
vladimir%pobox.com
24df28096b fix jsdate conversion in scriptable mozStorage wrapper (npotb) 2004-12-08 23:16:42 +00:00
vladimir%pobox.com
c6ac148881 b=272974, nice scriptable interfaces for storage, r=shaver 2004-12-03 16:56:57 +00:00
darin%meer.net
8df450478c value passed to bindDataParameter should be declared const, NOT PART OF THE BUILD 2004-10-20 04:08:55 +00:00
darin%meer.net
de6d3f310e fixing warnings under GCC 2004-10-20 02:42:50 +00:00
vladimir%pobox.com
2e46d6611d gcc compile fix, oops 2004-10-20 02:12:04 +00:00
vladimir%pobox.com
c5c2f4a92e remove native sqlite3.h bits from Connection idl 2004-10-09 14:33:01 +00:00
vladimir%pobox.com
497c1e02b3 b=263211, sqlite3 and storage landing - step 2; r=darin,sr=shaver 2004-10-09 00:04:10 +00:00