danielk1977
c7b6017c8a
Add code for the atomic-write optimisation. Disabled by default. (CVS 4268)
...
FossilOrigin-Name: 581fadfe31757e3fb97b12f93c1e3c085e4b6009
2007-08-22 11:22:03 +00:00
danielk1977
f1da17a388
Fix some problems in the crash-test backend. (CVS 4256)
...
FossilOrigin-Name: 5bced2392ad77aff0aa1ddea83f2ff9e3ffe28a8
2007-08-21 13:07:46 +00:00
drh
29278e3dbb
Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255)
...
FossilOrigin-Name: fbbd5bda544ffec4e1b43407b12e546235dc7873
2007-08-21 10:44:15 +00:00
drh
d677b3d688
Work toward multithreading support. Currently crashes quickly on a test. (CVS 4253)
...
FossilOrigin-Name: 1315bd8e125602275fb718780f9b2730bd37f6ab
2007-08-20 22:48:41 +00:00
danielk1977
967a4a1c96
Changes to crash-test io backend (test6.c) so that it works with the sqlite3_vfs interface. (CVS 4247)
...
FossilOrigin-Name: 40f66ada815fa1043d24c9cd6d898e1797e7044a
2007-08-20 14:23:44 +00:00
danielk1977
fee2d25a70
Further progress on migration to sqlite3_vfs. (CVS 4242)
...
FossilOrigin-Name: a258c4ec240f96bccfe493e98d0827ec7dd12e67
2007-08-18 10:59:19 +00:00
danielk1977
90949c2003
Remove some old OsFile and IoMethod related code. Add the sqlite3OsLockState function. (CVS 4241)
...
FossilOrigin-Name: 08a0f48028794abbeae1b4852652062b38d37d88
2007-08-17 16:50:38 +00:00
danielk1977
b4b47411ab
Begin migration to using sqlite3_vfs interface. (CVS 4240)
...
FossilOrigin-Name: af3e3c7acdc67013dd733effebe981620d922dd1
2007-08-17 15:53:36 +00:00
danielk1977
6207906027
Modify the crash-recovery test code in test6.c for 3.5. Also change some other code to use the new sqlite3_io_methods interface. Lots of things are broken now. (CVS 4228)
...
FossilOrigin-Name: af9503daf3f7703fcddad754bc1dc9e179830b6e
2007-08-15 17:08:46 +00:00
drh
87cc3b3180
Remove compiler warnings in the amalgamation. (CVS 3960)
...
FossilOrigin-Name: c5754530c6b1a8151c558f33d27fed70c95a988b
2007-05-08 21:45:27 +00:00
drh
bd08af4871
Fix the amalgamation so that it works with -DSQLITE_ENABLE_REDEF_IO. Change
...
tclsqlite.c so that it can be appended to the amalgamation. Create a new
amalgamation of header files for use by projects that want to redefine their
own I/O interface using -DSQLITE_ENABLE_REDEF_IO. (CVS 3817)
FossilOrigin-Name: f2caff870c81c08ec85aae72986c231ee986b251
2007-04-05 21:58:33 +00:00
drh
3ceeb75680
Change the name of PAGER_SECTOR_SIZE to SQLITE_DEFAULT_SECTOR_SIZE. Make
...
the new OS-layer interface routine for finding sector size optional. (CVS 3750)
FossilOrigin-Name: 0fb9af1d6e20bf25511c6d2097937cc11137776e
2007-03-29 18:19:52 +00:00
danielk1977
b472117c11
Add new OS file method to return the sector-size of the underlying storage: sqlite3OsSectorSize() (CVS 3700)
...
FossilOrigin-Name: 5752d84d374205e011d49b0221d6237967fe0743
2007-03-19 05:54:48 +00:00
danielk1977
161fb79619
General test coverage improvements. (CVS 3022)
...
FossilOrigin-Name: 153940af5af4f775fa3b1784931d3fd1e41764c5
2006-01-24 10:58:21 +00:00
drh
3f4590226f
Enable redefinable I/O if the SQLITE_ENABLE_REDEF_IO macro exists. (CVS 2883)
...
FossilOrigin-Name: e170e15766389e978991b42a0d2ec303162aaad6
2006-01-07 16:06:07 +00:00
drh
66560adab3
Change the OS interface layer to use traditional direct function call
...
implementations instead of the more complicated virtual function table.
Omit the asynchronous I/O demo. (CVS 2870)
FossilOrigin-Name: 2529c2e11fa1d345ec61f647e4f6fae20a7133d6
2006-01-06 14:32:19 +00:00
drh
e19d594067
Enable async testing. Modify the OS layer interface. Add the sqlite3_aux.h include file. Add tests for boolean value representation in file format 4. (CVS 2866)
...
FossilOrigin-Name: b8332aa8b83142898779972b3dff13cbe3c78623
2006-01-06 03:29:56 +00:00
danielk1977
13a68c3f61
Add the sqlite3_os_routine_set()/get() functions. (CVS 2818)
...
FossilOrigin-Name: c1ed79f594fb85009c2e9e5e281cbe66a9d2fa17
2005-12-15 10:11:30 +00:00
drh
054889ec6d
Restructure the OS interface yet again. This time make the OsFile object
...
a virtual base class which is subclassed for unix, windows, and the crash
test simulator. Add the new file "os.c" for common os layer code. Move
all OS-specific routines into the sqlite3Os structure. (CVS 2795)
FossilOrigin-Name: bd8740d1aecba69e1b5d64d43db07e8ad8841f07
2005-11-30 03:20:31 +00:00
drh
bbd42a6dda
Split up os.c into separate files, one for each platform. (CVS 1441)
...
FossilOrigin-Name: 5c61be1c47ac960fba2a642e69a98436ce1cd725
2004-05-22 17:41:58 +00:00
danielk1977
6f8a503d71
Change the names of external symbols from sqlite_XXX to sqlite3_XXX. (CVS 1338)
...
FossilOrigin-Name: 2242423e31a5e81e89ffcc99e62307c5cc0120d5
2004-05-10 10:34:51 +00:00
danielk1977
4adee20fcb
Change lots of internal symbols from sqliteXXX to sqlite3XXX so that the
...
library links again. It doesn't work yet, due to changes in the btree layer
calling convention. (CVS 1324)
FossilOrigin-Name: 8af6474c49263ae26216dff9465b33f76b500cf4
2004-05-08 08:23:19 +00:00
drh
6e17529e97
Fix the min/max optimizer so that it works when the FROM clause is a
...
subquery. Ticket #658 . (CVS 1293)
FossilOrigin-Name: 31c94acc72d318b5dec0fef1485621943add45c8
2004-03-13 14:00:36 +00:00
drh
3039c0a896
Fix some compiler warnings in LCC. The warnings did not indicate real
...
problems. Ticket #634 . Not all warnings in ticket #634 were fixed. (CVS 1276)
FossilOrigin-Name: e97089b7df3e2fbfcf36062099d02ecb75e9a870
2004-02-29 00:11:30 +00:00
drh
bbd82df617
Refactor the interface to the randomness generator. (CVS 1224)
...
FossilOrigin-Name: f2bdccf4bb2f796aafb64c33e55f62a1794d750c
2004-02-11 09:46:30 +00:00
drh
31e95bcc5d
On unix, embargo close() operations until all locks have cleared from the
...
file. Ticket #561 . (CVS 1171)
FossilOrigin-Name: 1ebe5fc7b03a6b070a5d52ffedb95f0d519ab068
2004-01-12 00:39:05 +00:00
drh
e807febbc2
Add the sqlite_current_time variable for testing purposes. (CVS 1156)
...
FossilOrigin-Name: 23fa407d50741bc0719259792398f28c1d0f12c2
2004-01-06 00:44:24 +00:00
drh
07fa2a60ea
Fix a bug (ticket #541 ) introduced by the previous check-in ((1149)). (CVS 1150)
...
FossilOrigin-Name: 646244008fb8a6eef4169291d75da59fa1ab26f9
2003-12-31 16:00:19 +00:00
drh
dff7ec2cbd
Reduce the randomness in the sqliteRandomSeed() routine in order to silence
...
bogus errors from valgrind. Tickets #535 and #536 . (CVS 1149)
FossilOrigin-Name: cfe0acf9ec6c89f1e77b8be7dcc23029984de1ce
2003-12-31 13:21:18 +00:00
drh
acf01e7ddd
A better fix for ticket #530 - one that is likely to work on unix
...
implementations in addition to linux. Also more tests for multi-thread
locking added. (CVS 1138)
FossilOrigin-Name: 7dddbeb586504de30c64a1e61614da447f18c8ba
2003-12-19 08:40:22 +00:00
drh
a6064dcf3b
Add new thread-testing code and fix locking under Linux threads. Ticket #530 . (CVS 1137)
...
FossilOrigin-Name: b36a4bb61094d539273c21a9e4042384f10a7806
2003-12-19 02:52:05 +00:00
drh
41743984bf
Always use "(char*)0" to terminate the argument list of sqliteSetString().
...
This is needed for 64-bit systems that use a 32-bit integer by default. (CVS 1126)
FossilOrigin-Name: 656c90387a4a714b4f31040ece9b0e15e30934af
2003-12-06 21:43:55 +00:00
drh
41a8230fef
Make the sqliteOsCurrentTime() function work for Windows. Code contributed
...
by "e4liberty" on the mailing list. (CVS 1071)
FossilOrigin-Name: 02fac304c9ec9012f3cc4f04d2c4cac5e37b0024
2003-08-10 16:16:22 +00:00
drh
771d8c3bae
Add experimental date and time functions based on julian day number. (CVS 1069)
...
FossilOrigin-Name: a6197e2075fdf9db862484255ac16b2855bbef0a
2003-08-09 21:32:28 +00:00
drh
a76c82eb0d
When creating a new journal file, open a (read-only) file descriptor on the
...
directory containing the journal and sync that directory once to make sure
that the journal filename entry gets into the directory. Ticket #410 . (CVS 1066)
FossilOrigin-Name: 09c10fe3c99cffc64ed02c2929f206d99c8e3309
2003-07-27 18:59:42 +00:00
drh
4d87325d61
Make sure temporary file names in windows have a full 15 characters of
...
random text at the end. (CVS 1059)
FossilOrigin-Name: 6ccb92b14f2e6e01bb60dac10331fa7be0b4525e
2003-07-22 00:39:13 +00:00
drh
937dd84de8
Fix a bug in the soundex() code. Ticket #367 . Add tests for ticket #261
...
even thought the problem could not be reproduced. (CVS 1035)
FossilOrigin-Name: e2ca936feee35b3fce99c95c2cf8c0ad05cd9c3b
2003-06-28 16:20:22 +00:00
drh
7d02cb73ca
Fix a bug in UPDATE OR REPLACE that was introduced by check-in (999).
...
Also clean up some compiler warnings for VC++. (CVS 1005)
FossilOrigin-Name: af6f2bdf59fb621ff3e1d061e429f01ebd7d0b42
2003-06-04 16:24:39 +00:00
drh
9ac717d7f6
Modify the windows locking code so that it works correctly for a database
...
being shared between Win95/98/ME and WinNT/2K/XP systems. Ticket #310 . (CVS 988)
FossilOrigin-Name: 8c402db7e0745622d9950e5ca5d4d8e933da436c
2003-05-29 17:43:08 +00:00
drh
aba46b19f5
Do not use the return value of fcntl() to find the reason that it failed.
...
Use errno instead. Tickets #240 and #270 . (CVS 938)
FossilOrigin-Name: acf9e9802fa6396df5653ca4e72ab4ec2333509d
2003-04-26 02:40:45 +00:00
drh
f7c5753174
Make VACUUM work even if multiple processes have the database open at once. (CVS 933)
...
FossilOrigin-Name: caa960289f3d1f5e8f35a94e9e4321996c211ed2
2003-04-25 13:22:51 +00:00
drh
8396566204
Change the shell to use the sqliteIsNumber() routine for determining if
...
values are numeric. Modified os.c so that it should now work with DJGPP -
though I have no way of testing this. (CVS 913)
FossilOrigin-Name: 35caefe31750fd103b5f0231ad36f375771063eb
2003-04-17 02:54:13 +00:00
drh
73509eee84
Simplify the BTree interface by shortening names. Added two new methods
...
for accessing the current filename and for changing the name of the
database file. (CVS 900)
FossilOrigin-Name: 185d8dc8d0c26cef36aeba6992823e5124af4056
2003-04-06 20:44:45 +00:00
drh
001bbcbb8f
Modifications to the VDBE to support more than one database file. (CVS 878)
...
FossilOrigin-Name: 875da9eed981bfa27b98e95025f9fdbed74b4098
2003-03-19 03:14:00 +00:00
drh
94e9203247
Added test code to check for file descriptor leaks. All regression tests pass
...
now on both win2k and linux. (CVS 868)
FossilOrigin-Name: 75ba78280f7ab6b6acce5878859312f3223ee898
2003-02-16 22:21:32 +00:00
drh
341eae8d35
In the pager, cache a pointer to the first page on the freelist that does not
...
need to be synced. This makes a fetch of a page that is not in cache go a
lot faster when the cache is full. This check-in also adds some performance
instrumentation to the OS layer. (CVS 842)
FossilOrigin-Name: 00f08fc0b5b6b9c5efbf15a62f9a1cc1cfa71283
2003-01-21 02:39:36 +00:00
drh
db48ee02c4
Improvements to the pager to help large updates against a large database run
...
faster. Also improved the testing of the pager rollback algorithms. (CVS 835)
FossilOrigin-Name: 717523d3750dce784fa767ed9a8267d1246798ef
2003-01-16 13:42:43 +00:00
drh
820f3812d8
Port ot MacOS Classic. Ticket #218 . (CVS 820)
...
FossilOrigin-Name: 13f82d67f60ae869d5bf2e31d9357a860aa62bad
2003-01-08 13:02:52 +00:00
drh
3e7a609667
Save the full pathname of the database file so that journalling still works
...
even if the user changes working directories after opening the databae.
Ticket #200 . (CVS 798)
FossilOrigin-Name: 1c58b4fc032c5975dcce9b8ae844c0e516254a17
2002-12-07 21:45:14 +00:00
drh
da47d7748f
Change to the pager to avoid opening journal files unnecessarily. This can
...
sometimes results in a significant speed improvement. (CVS 791)
FossilOrigin-Name: fa5c042585c601449ede7319d0c5993cd8ba75a4
2002-12-02 04:25:19 +00:00