Граф коммитов

265 Коммитов

Автор SHA1 Сообщение Дата
Lukas Blakk c20c046d54 Bug 450665: test_bug-365166.js creates file in /tmp instead of in build directory. r=sdwilsh 2008-08-16 16:17:47 +01:00
Shawn Wilsher bbe06d499c Make mozIStorageConnection threadsafe - bug 448476 r=robarnold 2008-08-12 17:50:25 -07:00
Blake Kaplan 93a1d9d3d0 Avoid returning false without setting an exception. bug 429521, r=sdwilsh 2008-08-04 10:04:27 -07:00
Blake Kaplan 2c3307a1c3 Test that the object has the right class, even when called from native code. bug 444233, r=shaver 2008-07-16 19:29:06 +02:00
Shawn Wilsher af9ace6c38 Bug 444821 - Re-enable test_storage_statement_executeAsync.js
This fixes the test to run properly on slower running systems (like the
tinderbox machines).
r=vlad
2008-07-15 11:04:52 -04:00
Shawn Wilsher 30341a77d9 Disable stupid test (stupidity is my own fault). Bug 444821 to fix it properly
and re-enable it.
2008-07-11 17:29:45 -04:00
Shawn Wilsher 6db817af9f Bug 429986 - Provide an option for database to be asynchronous
This adds unit tests for the async storage work.
r=vlad
2008-07-11 15:47:38 -04:00
Shawn Wilsher 7d890ca2b0 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 b994d6a1f7 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 d4a8e28e6c 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 5ccdb6b65b 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 a9bfd7a480 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
Benjamin Smedberg 690834e782 Bug 442762 - Annotate mozStorageStatementScoper with NS_STACK_CLASS, r=sdwilsh 2008-06-30 21:03:29 -04:00
Shawn Wilsher 5186757c75 Bug 434796
Remove mozIStorageStatement::initialize
r=vlad
sr=shaver
2008-06-11 11:00:09 -04:00
Shawn Wilsher af474342bb Bug 434247
Remove mozStorageStatement's mStatementString
r=vlad
2008-06-11 10:25:20 -04:00
Shawn Wilsher 7bb32c0f6c Backed out changeset 5ccc3423220f 2008-06-04 12:55:44 -04:00
Shawn Wilsher cbaeb177b3 Bug 434247
Remove mozStorageStatement's mStatementString
r=vlad
2008-06-04 11:59:43 -04:00
Shawn Wilsher 4f7847336c Bug 434244
Remove mozStorageStatement::Recreate
r=shaver
2008-06-04 11:42:15 -04:00
sdwilsh@shawnwilsher.com f0604a344a Bug 421482 - Firefox 3 uses fsync excessively. r=shaver, a=schrep 2008-05-23 07:56:10 -07:00
gavin@gavinsharp.com d19d467ae0 Bug 424402: Test a combination of shared and unshared database connections, patch by Ondrej Brablc <ondrej@allpeers.com>, r=shaver 2008-04-22 13:39:38 -07:00
sdwilsh@shawnwilsher.com 78099ebf94 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 6fd6cccd12 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 8c64ad4e10 bug 423964 uninitialized variable, r=sdwilsh, a=beltzner 2008-03-19 15:55:34 -07:00
timeless@mozdev.org 708cb4d031 Bug 422687 encfs makes Firefox crash at start [@ libsqlite3.so@0x30fad][@ sqlite3_exec] changing test to accept ERROR_FAILURE 2008-03-17 14:41:13 -07:00
timeless@mozdev.org 3b14330ed3 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
reed@reedloden.com 500a74385e Bug 395974 - "our storage unit tests cause "WARNING: Unsafe use of LIKE detected!" warnings" (Bind the value to avoid WARNING) [p=ondrej@allpeers.com (Ondrej Brablc) r=sdwilsh] 2008-03-08 03:25:41 -08:00
sayrer@gmail.com 93649c472e 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 458910fcde 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 60e16aa5b6 Bug 73353: Clean up our MODULE/REQUIRES story. rs=dbaron, a=brendan 2008-02-18 00:50:04 -08:00
sdwilsh@shawnwilsher.com 7efaade60c Bug 416173 - BackupDB is completely useless. r=vlad, a=damons 2008-02-09 11:05:49 -08:00
myk@mozilla.org 22e51a82e6 bug 413589: enable fts3 (full text index) sqlite module; r=sdwilsh, a=damons 2008-01-29 15:34:19 -08:00
sdwilsh@shawnwilsher.com 0b5e2d914c Bug 411976 - Update the comment in mozIStorageService.idl to reflect recent SQLite changes. This is a comment change only - NPOTDB. 2008-01-25 10:18:15 -08:00
sdwilsh@shawnwilsher.com ad1612cdbf Bug 408914 - Disable sqlite async IO. r=vlad 2008-01-09 19:21:56 -08:00
reed@reedloden.com ca04052974 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 06d2d2f0d1 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 cff8cd4f84 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 a8ff36f025 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 83f417766f 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 dee8ac7f39 Bug 394789 - Add a finalize() method to mozStorageStatement. r=neil, r=sspitzer, a=bzbarsky 2007-09-18 20:26:51 -07:00
dtownsend@oxymoronical.com 99e8c02af3 Comment correction, no bug. 2007-09-03 07:30:45 -07:00
dtownsend@oxymoronical.com f0886f7ceb Clarification comments for parameters, no bug. r=sdwilsh 2007-08-30 16:46:56 -07:00
sdwilsh@shawnwilsher.com 4eac417aa8 Bug 394241 - Add a closeDatabase() method to mozStorage. r=sspitzer 2007-08-30 06:43:17 -07:00
sdwilsh@shawnwilsher.com 0ef0a97fb7 Bug 393082 - Warn on unsafe usage of LIKE. r=sspitzer 2007-08-29 18:56:14 -07:00
sspitzer@mozilla.org 5969bad62b unit test for bug #393952: crash when I try to VACUUM (StorageUnicodeFunctions::likeFunction() should handle null aArgv[0] and aArgv[1]) r=sdwilsh 2007-08-28 09:39:07 -07:00
sdwilsh@shawnwilsher.com 6f3a35794d 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 892e2b9e5c 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 baa64e03da fix for bug #391697: add escapeStringForLIKE to mozIStorageStatement r=sdwilsh 2007-08-10 15:57:02 -07:00
sdwilsh@shawnwilsher.com 02be52e34c 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 5019028ac3 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 c388675fed 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 09a2e8231b Bug 386179, Stop using sqlite3ApiExit, r=sdwilsh 2007-07-24 19:18:54 -07:00
sdwilsh@shawnwilsher.com 510bb3d6b4 Bug 388059 - Add a getColumnIndex method to mozIStorageStatement. r=sspitzer 2007-07-19 09:30:17 -07:00
sdwilsh@shawnwilsher.com 3d5f109b8e Bug 306907 - Build libsqlite as a standard name separate shared library. Patch by Michael Wu <michael.wu@mozilla.com>, Robert Relyea <rrelyea@redhat.com>, Ryan VanderMeulen <ryanvm@gmail.com>, and Shawn Wilsher <me@shawnwilsher.com>. r=benjamin 2007-07-18 09:20:12 -07:00
sdwilsh@shawnwilsher.com db89527845 Backout of Bug 306907 2007-07-16 14:32:03 -07:00
sdwilsh@shawnwilsher.com 942eb53c84 Bug 306907 - Build libsqlite as a standard name separate shared library. Patch by Michael Wu <michael.wu@mozilla.com>, Robert Relyea <rrelyea@redhat.com>, Ryan VanderMeulen <ryanvm@gmail.com>, and Shawn Wilsher <me@shawnwilsher.com>. r=benjamin 2007-07-16 14:23:29 -07:00
sdwilsh@shawnwilsher.com 7e7cab07e6 Bug 388048 - mozIStorageStatement::getParameterIndexes is useless. r=sspitzer 2007-07-15 11:03:20 -07:00
sdwilsh@shawnwilsher.com 7019922adf Bug 384526 - Use sqlite3_prepare_v2 instead of sqlite3_prepare. r=sspitzer 2007-07-11 15:20:39 -07:00
sdwilsh@shawnwilsher.com 997b6310e9 Backout of Bug 384526 (causes orange) 2007-07-10 10:23:36 -07:00
sdwilsh@shawnwilsher.com ac4890c33d Bug 384526 - Use sqlite3_prepare_v2 instead of sqlite3_prepare. r=sspitzer 2007-07-10 09:58:17 -07:00
jwalden@mit.edu 12e960c504 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 7f9c748719 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 969cf32a13 Orange fix. rs=gavin.sharp 2007-07-03 15:49:42 -07:00
sdwilsh@shawnwilsher.com c2b2521e64 Fix orange. r=gavin.sharp 2007-07-03 15:33:46 -07:00
sdwilsh@shawnwilsher.com 8b24012813 Bug 386394 - Add a BackupDB method to mozIStorageConnection. r=mano 2007-07-03 13:54:36 -07:00
sdwilsh@shawnwilsher.com a77dbe81b6 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 fdacbba11f Bug 386179 - Stop using private sqlite functions. r=sspitzer 2007-07-02 10:25:36 -07:00
philringnalda@gmail.com 05ae532ba4 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 72a0b4ca0d Bug 385396 - Go back to vanilla sqlite files. r=mconnor 2007-06-22 14:34:14 -07:00
sdwilsh@shawnwilsher.com 070ef2b777 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 2f5dc24a10 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 bc5af742fb Bug 341137 - Upgrade to latest version of sqlite (take 2). r=vladimir 2007-06-20 20:17:26 -07:00
sdwilsh@shawnwilsher.com 6cb92e7b35 Backout of Bug 341137 2007-06-19 16:47:38 -07:00
sdwilsh@shawnwilsher.com aaf8d336cf Bug 341137 - Upgrade to latest version of sqlite. r=vladimir 2007-06-19 12:54:01 -07:00
sdwilsh@shawnwilsher.com ed928796c5 Bug 363024 - Calling createInstance() on mozIStorageService crashes. r=sspitzer 2007-06-18 19:22:01 -07:00
sdwilsh@shawnwilsher.com bf2a319179 Bug 384454 - Remove sqlite3_bind_parameter_indexes. r=sspitzer 2007-06-18 16:42:23 -07:00
dwitte@stanford.edu 79dbd48ee2 check for non-null connection in mozStorageTransaction helper. b=384224, r=sspitzer 2007-06-13 21:58:52 -07:00
sdwilsh@shawnwilsher.com 439e6bd5c4 Bug 383543 - mozStorageService cleanup. r=sspitzer 2007-06-12 16:31:59 -07:00
sdwilsh@shawnwilsher.com 2811b49856 Bug 383534 - mozStorageConnection ignores return values (and other cleanup). r=sspitzer 2007-06-12 16:19:34 -07:00
sdwilsh@shawnwilsher.com e4f8536def Bug 381549 - mozStorageStatement ignores return values from SQLite. r=sspitzer 2007-06-12 15:01:05 -07:00
sdwilsh@shawnwilsher.com 8cfdccb885 Bug 383619 - Get xpcshell tests for mozStorage (windows orange fix). r=rcampbell 2007-06-12 09:28:27 -07:00
sdwilsh@shawnwilsher.com 84ab9c492a Disabling tests from Bug Bug 383619 because windows doesn't like them :( 2007-06-11 21:33:25 -07:00
sdwilsh@shawnwilsher.com 54966cfd80 Bug 383619 - Get xpcshell tests for mozStorage. r=vladimir 2007-06-11 20:59:26 -07:00
igor@mir2.org 3b6c4a7b39 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 4d2fa17276 Bug 377751: removal of the commit. 2007-05-01 14:54:29 -07:00
igor@mir2.org 4d525734e5 Bug 377751: JSClass instances in xpconnect use the tracing API. r=brendan, sr=jst 2007-05-01 14:06:07 -07:00
roc+@cs.cmu.edu 0054412272 Bug 374866. Reftests for text-transform. r=dbaron 2007-03-22 16:01:14 -07:00
mrbkap%gmail.com 19772c4638 Always check the type of the object that we're operating on, even when called from native code. bug 444233, r=shaver a=ss 2008-08-11 18:21:27 +00:00
sdwilsh%shawnwilsher.com 50cf696aaf Bug 421482 - Firefox 3 uses fsync excessively. r=shaver, a=schrep 2008-05-23 14:56:10 +00:00
gavin%gavinsharp.com d1d6ff8ed6 Bug 424402: Test a combination of shared and unshared database connections, patch by Ondrej Brablc <ondrej@allpeers.com>, r=shaver 2008-04-22 20:39:38 +00:00
sdwilsh%shawnwilsher.com 4dc42ff373 Bug 423273 - Fix storage API to not break old behavior. r=shaver, sr=shaver, a=shaver 2008-03-24 22:14:40 +00:00
edward.lee%engineering.uiuc.edu 80ae595f78 Bug 420505 - mozStorageService isn't as threadsafe as it claims to be. p=sdwilsh, r=brendan, r=bsmedberg, b1.9=sayrer 2008-03-20 01:37:04 +00:00
dveditz%cruzio.com b6d26ac6ef bug 423964 uninitialized variable, r=sdwilsh, a=beltzner 2008-03-19 22:55:34 +00:00
timeless%mozdev.org b9ff373469 Bug 422687 encfs makes Firefox crash at start [@ libsqlite3.so@0x30fad][@ sqlite3_exec]
changing test to accept ERROR_FAILURE
2008-03-17 21:41:13 +00:00
timeless%mozdev.org 1ca9bee0ed Bug 422687 encfs makes Firefox crash at start [@ libsqlite3.so@0x30fad][@ sqlite3_exec]
r=sdwilsh a=beltzner
2008-03-17 21:01:16 +00:00
reed%reedloden.com 747db36f04 Bug 395974 - "our storage unit tests cause "WARNING: Unsafe use of LIKE detected!" warnings" (Bind the value to avoid WARNING) [p=ondrej@allpeers.com (Ondrej Brablc) r=sdwilsh] 2008-03-08 11:25:41 +00:00
sayrer%gmail.com 3d734ed178 Bug 419905. turn off pgo in places, mozstorage, sqlite. r=ted.mielczarek, a=beltzner 2008-02-27 20:25:46 +00:00
reed%reedloden.com 981869b961 Bug 263381 - "support --with-system-sqlite3 in storage builds" [p=mh+mozilla@glandium.org (Mike Hommey) r=bsmedberg a1.9=beltzner] 2008-02-22 11:26:00 +00:00
jag%tty.nl 4221353fba Bug 73353: Clean up our MODULE/REQUIRES story. rs=dbaron, a=brendan 2008-02-18 08:50:33 +00:00
sdwilsh%shawnwilsher.com fa9a0b9fce Bug 416173 - BackupDB is completely useless. r=vlad, a=damons 2008-02-09 19:05:49 +00:00
myk%mozilla.org 0575dd8932 bug 413589: enable fts3 (full text index) sqlite module; r=sdwilsh, a=damons 2008-01-29 23:34:21 +00:00