Commit Graph

5490 Commits

Author SHA1 Message Date
drh
74f7eb18b9 Clarify in the documentation that the database connection pointer to
sqlite3_next_stmt() must not be NULL.  Ticket #3244. (CVS 5464)

FossilOrigin-Name: a7d64e86e84cf16c9742e6b012a0b96d9c6b2ba1
2008-07-23 18:25:56 +00:00
drh
4dc754d96d Read the sqlite3_vtab.zErrMsg after each call to a virtual table
method and transfer any error into the database connection.
Fix the fts2.test and fts3.test scripts to that they return
silently rather than failing the test sequence if the appropriate
FTS implementation is unavailable. (CVS 5463)

FossilOrigin-Name: e2c6771d44f1b4fee16ef90e91c3498be2a7d2b1
2008-07-23 18:17:32 +00:00
drh
b25f9d84cd Update requirements derivation information in sqlite.h.in. (CVS 5462)
FossilOrigin-Name: d6202907e70d902e967ba116012c274154f30b8d
2008-07-23 15:40:06 +00:00
mihailim
2a3d38dd86 Quick typo fix. No changes to code. (CVS 5461)
FossilOrigin-Name: dfa8b456630089d385f89c145ae709be85424cd7
2008-07-23 13:42:26 +00:00
drh
9cd2964e06 Documentation updates. (CVS 5460)
FossilOrigin-Name: fe8e9f53f4bcedf2e8a657f33eb9a0939ef74c95
2008-07-23 00:52:55 +00:00
shess
25192cac24 Be a bit more susicious of invalid results from the tokenizer.
Backports check-in (4514) from fts3. (CVS 5459)

FossilOrigin-Name: 311aeb9c2b75c420a37198a93e353c72e9166747
2008-07-22 23:54:50 +00:00
shess
db94e39b07 Implement optimize() function.
Backports check-in (5417) from fts3. (CVS 5458)

FossilOrigin-Name: c16900dc7603cab30f8729b25361bc88bb37ae43
2008-07-22 23:49:44 +00:00
shess
08904673c8 Delete all fts2 index data the table becomes empty.
Backports check-in (5413) from fts3. (CVS 5457)

FossilOrigin-Name: 4c98179be258319f441ae4e123cf59af77e96409
2008-07-22 23:41:26 +00:00
shess
3d373110f0 fts2 functions for testing scripts.
Backports (5340) from fts3. (CVS 5456)

FossilOrigin-Name: 4e47394be9dfbf0f9309e55eb6c6a3a517ea2006
2008-07-22 23:32:27 +00:00
shess
deca811cb5 Change prefix search from O(N*M) to O(NlogM).
Backports (4599) from fts3. (CVS 5455)

FossilOrigin-Name: 3f614453d2d7c753a5963b027fe8618b50b4f6b9
2008-07-22 23:08:40 +00:00
shess
b2822a2b5e Changes fts2 to use only sqlite3_malloc() and not system malloc.
Backports (4554) and (4555) from fts3. (CVS 5454)

FossilOrigin-Name: ecf2dec66cb979cb7d8db3b7ce5c64cab57fe2bb
2008-07-22 22:57:54 +00:00
shess
29647900e2 fts2.c buildTerms() passes -1 for nInput.
Backports (4511) from fts3. (CVS 5453)

FossilOrigin-Name: d562515e1cdd05212674516033c64b5f5668b799
2008-07-22 22:20:50 +00:00
shess
4249b3f539 Cleanup the hash functions in FTS2.
Backports (4440) from fts3. (CVS 5452)

FossilOrigin-Name: e31d2f875c13ee41742c9aaee6291662cdbbf863
2008-07-22 22:15:47 +00:00
drh
9a24791576 Documentation updates. No changes to code. (CVS 5451)
FossilOrigin-Name: e58b49779bfd4a9e88e8c6b0a929c97167b718b3
2008-07-22 18:45:08 +00:00
shane
820800d0bf winGetLastError support added. Consolidated getLastErrorMsg() support. Removed some more WINCE dead code similar to instance in ticket #3232. Added error return on SystemTimeToFileTime() failure. (CVS 5450)
FossilOrigin-Name: c0a5cf38eea80640e42c612ce6f4850c98f70638
2008-07-22 05:32:03 +00:00
shane
0b8d276684 Changed a few loop counters to unsigned ints to remove compiler warnings. (CVS 5449)
FossilOrigin-Name: 16f51f9b39c46659b4be4afd7f0d8ec325469e7b
2008-07-22 05:18:00 +00:00
shane
791ea93f68 Added comment on floating point precision compile option for MSVC. (CVS 5448)
FossilOrigin-Name: e20f2b8c6a13aa826703441cf340d0ee03bf9f64
2008-07-22 05:15:52 +00:00
shane
dfb7b37dc0 Add assertion check for NaN support at startup. (CVS 5447)
FossilOrigin-Name: 8474cde34b3fcb99cd5908fddb8528d0db331cdf
2008-07-22 05:13:30 +00:00
shane
fbededef48 "configure" support updated. Removed unused features. Added parsing of CFLAGS and CPPFLAGS to extract OMIT options to pass to lemon and mkkeywordhash. (CVS 5446)
FossilOrigin-Name: c67aa5057deda6419e1f205118bf09957d599c15
2008-07-22 05:05:01 +00:00
shane
3514b6f759 flattenSubquery() needed if either SQLITE_OMIT_SUBQUERY or SQLITE_OMIT_VIEW not defined. (CVS 5445)
FossilOrigin-Name: 1ffe7a995733fe91534a3ed81d2640fd7e6ebaa6
2008-07-22 05:00:55 +00:00
danielk1977
85d90ca7a7 Reduce the number of "#ifndef SQLITE_OMIT_AUTOVACUUM" conditions in btree.c by using the ISAUTOVACUUM macro instead. (CVS 5444)
FossilOrigin-Name: a560c61849cb669ab03ba4a63b23369db234f329
2008-07-19 14:25:15 +00:00
danielk1977
b27475ba75 To ensure SQLITE_THREADSAFE is always defined, have test_mutex.c include sqliteInt.h. (CVS 5443)
FossilOrigin-Name: d8be91e2d2737dcb0e82e6c8a6a3f4827bc98d63
2008-07-19 13:43:23 +00:00
danielk1977
87c52b58f0 Improve the performance of balance_nonroot() on auto-vacuum databases by reducing the number of calls to ptrmapPut(). (CVS 5442)
FossilOrigin-Name: 9992b1aecdbbc7a260f00cb6ef78b500aeab22df
2008-07-19 11:49:07 +00:00
drh
78e772424d Remove dead code from os_win.c. Ticket #3232. (CVS 5441)
FossilOrigin-Name: 5c5c1f72797e4ceb229b8e3a7c65e5f173bb9e1a
2008-07-18 23:47:43 +00:00
drh
c702c7ccdd Use the actual size of memory allocations to update the memory status
counters.  Fix the roundup() function of mem3 to be much closer to the
actual allocation size.  Ticket #3226. (CVS 5440)

FossilOrigin-Name: 5c22132eb171058f30ec5b7562b8164611236748
2008-07-18 18:56:16 +00:00
drh
4a0611dd29 Fix SQLITE_OMIT_AUTOVACUUM so that it works again. Ticket #3228. (CVS 5439)
FossilOrigin-Name: 3b2dd417f9dab3cae3ab3693629a65a2c90f00e9
2008-07-18 17:16:26 +00:00
drh
e54a62ad85 Make sure expression spans are set correctly for "x.*" expressions in
the result set of a SELECT.  Ticket #3229. (CVS 5438)

FossilOrigin-Name: 17a9984e7668be388c4042c070718a02b284a336
2008-07-18 17:03:52 +00:00
danielk1977
8c666b1666 Performance improvement: reduce the number of calls to ptrmapPageno() made by ptrmapPut() and ptrmapGet(). (CVS 5437)
FossilOrigin-Name: d807fb271340901bbf3e06de23d91132422d1408
2008-07-18 09:34:57 +00:00
danielk1977
d3c4bad7fe Speed up sqlite3_finalize() by removing redundant code. (CVS 5436)
FossilOrigin-Name: c94318b982e9bb5b4c743cf8d5659f9eec697366
2008-07-18 08:10:47 +00:00
pweilbacher
8f1a6ff6f7 Init zFullCp to prevent crashes in case DosQueryPathInfo() fails. (CVS 5435)
FossilOrigin-Name: 70685b2ae8bbb8ab4316a762e1c1cc59b8032e0b
2008-07-18 05:36:28 +00:00
drh
1af4a6e67a The zeroPage() routine in btree.c need not actually zero the whole page,
just the header. (CVS 5434)

FossilOrigin-Name: c69633ec6977becfbd0a72854473b7f4515fb931
2008-07-18 03:32:51 +00:00
drh
1688c86f5a Omit the check for cell-pointer consistency in sqlite3BtreeInitPage()
for a 2.5% performance gain. (CVS 5433)

FossilOrigin-Name: b88087e69dffb743c5b552703e14a030349cf65b
2008-07-18 02:44:17 +00:00
drh
79df1f4a37 Optimization to sqltie3BtreeParseCellPtr. 0.3% performance increase. (CVS 5432)
FossilOrigin-Name: 77e099ad7de84fe07dfeb4c045c769653dd13b93
2008-07-18 00:57:33 +00:00
drh
44845221ed Simplify the b-tree logic by taking advantage of the fact that all b-trees
are either intkey+leafdata or zerodata. (CVS 5431)

FossilOrigin-Name: 29d3bfd7c9a68078385354394052612bf812859b
2008-07-17 18:39:57 +00:00
drh
b912f3e9e4 Fix the test harness so that it does not try to link against
sqlite3_mutex_alloc() if compiled with -DSQLITE_THREADSAFE=0. (CVS 5430)

FossilOrigin-Name: 26a203d894edd0091ac60862956e42d22167011e
2008-07-17 17:34:19 +00:00
pweilbacher
71b53ca460 Get rid of the debug output, and make pre-C99 compilers happy with sqlite3_os_init() on OS/2. (CVS 5429)
FossilOrigin-Name: 08fe49f62f8a91c36ad4bb9a1d8c89806c37f600
2008-07-16 19:30:37 +00:00
drh
137802cbeb Make sure the auxiliary database connection is closed after every test. (CVS 5428)
FossilOrigin-Name: e60bb6a179c6e674db2b9362e2ccdefaa3bc17f4
2008-07-16 18:35:45 +00:00
drh
06a0a81c38 More improvements to the 64-bit integer conversion testing in func.test. (CVS 5427)
FossilOrigin-Name: 632bb3c73443606bd2c7a5eadf0f4b8971a2b41e
2008-07-16 18:20:09 +00:00
danielk1977
4c99999965 Eliminate some unnecessary IO during a commit in full auto-vacuum mode. (CVS 5426)
FossilOrigin-Name: 1d01c02ab04f9cc0eb6a2a46a24d3ea63a617d5b
2008-07-16 18:17:55 +00:00
drh
01859b0b07 Fix a test in func.test so that it works on machines that lack long double. (CVS 5425)
FossilOrigin-Name: 8686959d4289dc0bf9e1c353b948f26cca5a9a65
2008-07-16 18:04:36 +00:00
drh
807b79e765 Version 3.6.0 (CVS 5423)
FossilOrigin-Name: 1841aee6045b00cf4ab7b8485f5ab537d5fcd272
2008-07-16 14:44:40 +00:00
drh
7cb53b0fdb Allow the r-tree extension to be compiled as part of the amalgamation. (CVS 5424)
FossilOrigin-Name: 5c26f63e476be3e18b2acdec5dd459da3bfceefa
2008-07-16 14:43:34 +00:00
drh
118640bdad Fix a bug in the error reporting of sqlite3_table_column_metadata(). (CVS 5422)
FossilOrigin-Name: 7eba18c3a5c91be2ca2b6cf9e4e04a2791e1f7b2
2008-07-16 14:02:32 +00:00
drh
a911abed4d Update the "experimental" markings on C/C++ interfaces. (CVS 5421)
FossilOrigin-Name: 96e95aa5e6c237bb9330900c2e1ac446158eca46
2008-07-16 13:29:51 +00:00
drh
3bbc0e7bc5 Fix a bug in the HOMEGROWN_RECURSIVE_MUTEX implementation for unix.
Ticket #3224. (CVS 5420)

FossilOrigin-Name: 9af2514c83782b4745bf48a4f82ff83111fa5535
2008-07-16 12:33:23 +00:00
drh
7830cd41ba Activate testing of mem3 and mem5. Fix problems found. Tickets #3223
and #3225.  Other test configuration changes. (CVS 5419)

FossilOrigin-Name: a3a7820540f6f2285e6c83cac84383fc7d60d267
2008-07-16 12:25:32 +00:00
pweilbacher
2a6962adfe Work around bugs in older versions of the OS/2 conversion library by trying to minimize calls to UniCreateUconvObject() etc. Use global uconv objects instead. (CVS 5418)
FossilOrigin-Name: 80e42183066b53129778ae8cbb16e495f7a82990
2008-07-15 22:59:04 +00:00
shess
7d9ef0d0fc Implement optimize() function. This merges all segments in the fts
index into a single segment, including dropping delete cookies. (CVS 5417)

FossilOrigin-Name: b22e187bc2b38bd219dd0feba19b97279bd83089
2008-07-15 21:32:07 +00:00
drh
edaedab238 Update column naming rules. Ticket #3221. Rules for column naming
are still subject to change (except for the AS rule which we promise to
keep the same) but are more consistent now.  And the rules are tested
using a new test script. (CVS 5416)

FossilOrigin-Name: 61f6e19755b85bcb065f85fc425c2172badea308
2008-07-15 20:56:17 +00:00
drh
5d414839f5 Continuing work on improved test coverage. (CVS 5415)
FossilOrigin-Name: c942a38e9aa80770e7e2819e51b43fa7aa854d71
2008-07-15 14:47:18 +00:00
drh
85e9e22b33 Increased test coverage. (CVS 5414)
FossilOrigin-Name: 7cf91e08c08ce515c24c738c7d079f5b81eebee6
2008-07-15 00:27:34 +00:00
shess
c2c66a030d Delete all fts3 index data the table becomes empty. Previously,
deleting all rows from an fts3 table would leave a bunch of index data
describing the terms of the original data, plus deletions of those
terms, perhaps with some amount of it merged together so the deletions
knocked out the originals.  Even when all rows were deleted that
original data would hang out, though eventually it would mostly be
overwritten if new data contained the same set of terms. (CVS 5413)

FossilOrigin-Name: 8b872e426091d9ef108e52dbec0d968ed7452907
2008-07-14 20:43:15 +00:00
drh
65cef1affc Add a new test script to exercise the deadlock avoidance code in the
btree mutex logic. (CVS 5412)

FossilOrigin-Name: 7d5e1c4375599a913d23e5954fa63c10ac9d7688
2008-07-14 19:39:16 +00:00
drh
584ff18996 Fix a typo in the documentation. Ticket #3219. (CVS 5411)
FossilOrigin-Name: 3dc72a46171020c62e6028d113b0e0f5ab05d159
2008-07-14 18:38:17 +00:00
danielk1977
3ddb5a5104 Have the rtree extension publish two virtual table types: "rtree" and "rtree_i32". rtree_i32 stores coordinate data as 32-bit signed integers. rtree uses 32-bit real (floating point) values. (CVS 5410)
FossilOrigin-Name: c060a9a6beca455bdceee9ce6ca71a7262f98a5f
2008-07-14 15:37:00 +00:00
drh
582de4f297 Remove the malloc2.test script since it was designed for use in versions
of SQLite that predate SQLite's ability to recover from out-of-memory
errors automatically.  Removing this script causes no reduction in
test coverage and removes potential problems reported by ticket #3213. (CVS 5409)

FossilOrigin-Name: 5bfc962533995530a0ef0875556f9f46e8dbf68b
2008-07-14 15:11:20 +00:00
drh
ff1590ee00 Write sqlite3_initialize() calls in sqlite3_malloc() within
SQLITE_OMIT_AUTOINIT.  Ticket #3217. (CVS 5408)

FossilOrigin-Name: 4961b0bbe8b9cf5fb27de7f2514e8ab399a00134
2008-07-14 12:52:53 +00:00
drh
7986a71a19 Fix a bug introduced by check-in (5406). Ticket #3216. (CVS 5407)
FossilOrigin-Name: 518a24aa3e042782fbf2e805cf080b61e58a8150
2008-07-14 12:38:20 +00:00
drh
c376a19890 Work around a bug in Borland C. Ticket #3216. (CVS 5406)
FossilOrigin-Name: 2c24e50da6f6c19dee105823125157db73bdd515
2008-07-14 12:30:54 +00:00
drh
34ff57b12f Fix additional typos in comments within lemon. Ticket #3215. (CVS 5405)
FossilOrigin-Name: 372147699585ca4bd11100983de924f63c5cfce5
2008-07-14 12:27:51 +00:00
drh
b5bd49e9cb Fix a bug in the #line generator of lemon. Ticket #3214. (CVS 5404)
FossilOrigin-Name: dc697c26668929c4eed5ab8cde6975125a7e66c7
2008-07-14 12:21:08 +00:00
drh
71f486254b Fix a typo in the documentation. (CVS 5403)
FossilOrigin-Name: d618a883304d5a84540daf5e3397de677786aff8
2008-07-13 03:55:03 +00:00
drh
31d38cf38b Documentation updates. No changes to code. (CVS 5402)
FossilOrigin-Name: 8be28aa0f259f0b86103e4f1e7da1adfecc4305c
2008-07-12 20:35:08 +00:00
danielk1977
185eac95b6 Fix the test script --binarylog option. (CVS 5401)
FossilOrigin-Name: 03e3cfc4ccab3c6441d41ade175dc041b8fa6c98
2008-07-12 15:55:54 +00:00
drh
e8f52c5089 Remove leftover debugging commands (breakpoint and btree_breakpoint) from
test scripts. (CVS 5400)

FossilOrigin-Name: dcb160249fa2d592ad09b8b0052102dc44a93511
2008-07-12 14:52:20 +00:00
drh
a34605859d Detect and handles the case where a row is modified or deleted while it
is being read during SELECT processing. (CVS 5399)

FossilOrigin-Name: c80a5d09935c60a2a50bc262c172a94073355f0d
2008-07-11 21:02:53 +00:00
drh
f460809030 Tweak to the ".timer" command in the CLI to help it work better with GCC. (CVS 5398)
FossilOrigin-Name: 1041deb6ae03c52ce1fb8170d11913cc0bbf3a6e
2008-07-11 17:23:24 +00:00
drh
a29afcbd1e Added corruptA.test for testing malformed database headers. (CVS 5397)
FossilOrigin-Name: 6dcce6b9748c6148a768a4f6b69f33f70edc3993
2008-07-11 16:39:23 +00:00
drh
17a7fa68d1 Improved NaN testing for highly optimized GCC on x86.
Tickets #3202 and #3194. (CVS 5396)

FossilOrigin-Name: a8a2fe45b21b405bb871e29540f98086b0c8f828
2008-07-11 16:19:09 +00:00
drh
34004cebb6 Additional test coverage for the btree module. Remove the failsafe() macro
and replace it with ALWAYS() and NEVER(). (CVS 5395)

FossilOrigin-Name: d7e2f0d2d45574d6191c1b191c0daf5260696f27
2008-07-11 16:15:17 +00:00
drh
8278ce7910 Fix minor problems in the test scripts and harness. (CVS 5394)
FossilOrigin-Name: c9ffbfe343b640051161301869698dd9f1f76cb7
2008-07-11 13:53:54 +00:00
drh
d37d79e081 Remove an extra zeroPage() call that was left in the previous check-in
by mistake.  Ticket #3209. (CVS 5393)

FossilOrigin-Name: c45d578e4475486dc5df1c1c0b6987d1cef39188
2008-07-11 03:38:41 +00:00
drh
1013148b1c Make the btree layer robust when faced with a corrupt database that
contains duplicate entries on the freelist.  Ticket #3209. (CVS 5392)

FossilOrigin-Name: 30825f74d60d8ace39bafd06814017ceefeb4fa4
2008-07-11 03:34:09 +00:00
drh
fa67c3c584 Additional test coverage in btree.c. Added corruption tests for
the ptrmap pages of an autovacuumed database (corrupt8.test). (CVS 5391)

FossilOrigin-Name: 620b472133438607c412e0c21d2a27605a89a414
2008-07-11 02:21:40 +00:00
drh
19dd29fcf5 Fix a bug in the mutex-testing logic introduced by check-in (5389). (CVS 5390)
FossilOrigin-Name: 8fc462b6b7afe390463ea7b010fd3230d9acc358
2008-07-10 20:41:49 +00:00
drh
8a42cbd3f0 Enhancements to the testing logic for malloc and mutex. Only permit one
of MEMSYS3/5 to be compiled-in at a time.  Omit the SQLITE_CONFIG_MEMSYS3/5
configuration options. (CVS 5389)

FossilOrigin-Name: ed8b2525006ae7f8cacd01b291760513fdbdff57
2008-07-10 18:13:42 +00:00
danielk1977
80b3c54851 Fix a crash in flattenSubquery(). (CVS 5388)
FossilOrigin-Name: 9c8b97ef593c17740640a01a7338164d7fbe070e
2008-07-10 17:59:12 +00:00
danielk1977
9a6284c1bb Add the SQLITE_OPEN_NOMUTEX flag. Used for opening connections that are not protected by an internal mutex. (CVS 5387)
FossilOrigin-Name: 7e58b78712420b3bd4320192a58d89eb71eecc9c
2008-07-10 17:52:49 +00:00
drh
93a960a0a8 Remove unused code. Test coverage enhancements. Modify the algorithm used
to select column names for VIEWs of joins so that the constructed column
names omits the underlying table names. (CVS 5386)

FossilOrigin-Name: 636cd723296a8b1709011fdd99b236ffddf3f1b0
2008-07-10 00:32:42 +00:00
drh
af005fbc13 Test coverage improvements on printf. (CVS 5385)
FossilOrigin-Name: 2d8f7bebf0f13f3a95f1e2163e35d43229cabfea
2008-07-09 16:51:51 +00:00
danielk1977
10235605ff Add a test case to join.test. No code changes, no bugs found. (CVS 5384)
FossilOrigin-Name: 417aa1580abec8cc335dcb6ac36245c081a31ef8
2008-07-09 14:47:21 +00:00
drh
22c2403a1c Begin adding the failsafe() macro. (CVS 5383)
FossilOrigin-Name: 8aae4fe7e702b7636fba1fd609a0ca22fdcc3371
2008-07-09 13:28:53 +00:00
danielk1977
474b7cc785 Coverage testing for balance_quick() and balance_deeper(). (CVS 5382)
FossilOrigin-Name: 491f8f9613d2b886acad2ab8f631a4ec61ad698d
2008-07-09 11:49:46 +00:00
drh
e49b146f30 Additional test coverage in select.c and expr.c. (CVS 5381)
FossilOrigin-Name: c6cf08477cc4d622a05ad6706cb9418cf7eea432
2008-07-09 01:39:44 +00:00
drh
a9671a22b3 Remove obsolete code from select.c, including the "affinity" parameter
to the sqlite3Select() module. (CVS 5380)

FossilOrigin-Name: cbd3c1585b7a8f8042aa1448fe1be87de056c41a
2008-07-08 23:40:20 +00:00
pweilbacher
96d9cf064b Handle sqlite3_temp_directory on OS/2. (CVS 5379)
FossilOrigin-Name: 9da0b32c8c55b41cbcb4eb635c51348072101ea9
2008-07-08 22:34:06 +00:00
shane
1fc4129df7 Added macros to convert between 32-bit ints and 64-bit ptrs to avoid compiler warnings. (CVS 5378)
FossilOrigin-Name: 6cdb6841ff4683e424ef394733da9c24f5602570
2008-07-08 22:28:48 +00:00
shane
c6f66c5349 Added test_mutex.c (for testfixture) to input file for configure script. (CVS 5377)
FossilOrigin-Name: bfca089dbfa742c5ba3a530f61b5e979935d127f
2008-07-08 22:15:49 +00:00
pweilbacher
7f6358b4f5 make OS/2 VFS functions static (CVS 5376)
FossilOrigin-Name: b40d9496d03b16a25c164bbb694860539f77cbc3
2008-07-08 19:46:24 +00:00
drh
c8c0f8fc85 Fix a bug in where.c introduced by check-in (5373). (CVS 5375)
FossilOrigin-Name: 1ed98f9e617fb422efc37c4a3a5c5f0702467868
2008-07-08 19:45:02 +00:00
drh
f089aa459e Completely rework the sqlite3SetString() primitive so that it honors the
SQLITE_LIMIT_LENGTH and avoids the use of strlen(). (CVS 5374)

FossilOrigin-Name: 8ed04b1e26a55306e4baf3e93fb084514134d603
2008-07-08 19:34:06 +00:00
drh
0880a74633 Improved testing of the min/max optimization. (CVS 5373)
FossilOrigin-Name: fa07c360b708324c47c8e9931f1e2b1b24e4faf8
2008-07-08 18:05:26 +00:00
danielk1977
49fc1f60b0 Prevent the flattening optimization from transforming a to a query with an illegal ORDER BY clause. (CVS 5372)
FossilOrigin-Name: 6c2adade34fdbe344cf73f6bac951e0c37dd003b
2008-07-08 17:43:56 +00:00
danielk1977
1bc71590c4 Test another corruption case in btree.c. And an IO error related scenario. (CVS 5371)
FossilOrigin-Name: d74fbb81ca3f973ac46534344e5076afc5dd5491
2008-07-08 17:13:59 +00:00
danielk1977
9ffe5d7247 3 more coverage tests for btree.c. (CVS 5370)
FossilOrigin-Name: 96df0a5fa4bb2b3dfedf034d81704e152cdc63a9
2008-07-08 15:59:51 +00:00
drh
ddff9ae46b Tests for SQLITE_LIMIT_LENGTH enforcement in sqlite3_bind. (CVS 5369)
FossilOrigin-Name: c5e45dd664198e5b4fc44b316bd4adbc9a6c296b
2008-07-08 15:26:49 +00:00
drh
0a687d123e Improved enforcement of the SQLITE_LIMIT_LENGTH limit. (CVS 5368)
FossilOrigin-Name: ee93150878436ce6e992ea8a1d348fb58b03b5e2
2008-07-08 14:52:07 +00:00
danielk1977
35af9ba095 Another corruption related test case. (CVS 5367)
FossilOrigin-Name: f781a68127c97e30763447a12314180f0728deb9
2008-07-08 14:31:14 +00:00
danielk1977
00f0faf3ac Fix a compilation bug with SQLITE_OMIT_AUTOINIT. (CVS 5366)
FossilOrigin-Name: 94c95fad56965b68176e93f0690f0819ad40bcf7
2008-07-08 14:17:35 +00:00
danielk1977
a961339cd7 Extra coverage tests for btree.c. (CVS 5365)
FossilOrigin-Name: 08334f60303e63b581fa7f1f00d3e8833f1710ca
2008-07-08 12:07:32 +00:00
danielk1977
fb437278bb Make sqlite3_shutdown() a no-op if the library is not initialized. (CVS 5364)
FossilOrigin-Name: d725d3bbcef6a8093a246f8ef5b11bf690662393
2008-07-08 12:02:35 +00:00
danielk1977
3aa4b67f04 Improve coverage of btree.c. (CVS 5363)
FossilOrigin-Name: f6d9cb835b8f75545f455328d61ba225e7da9bc4
2008-07-08 10:19:58 +00:00
danielk1977
983e230939 Prohibit the user from changing the temporary storage medium (pragma temp_store) while there is a read transaction open on the temporary database. Add tests to shared.test to cover a few more lines in btree.c. (CVS 5362)
FossilOrigin-Name: 92e0cf9a08a8b337a8f239afb048a0e045485771
2008-07-08 07:35:51 +00:00
shane
5e73db36c6 change to use sqlite_uint64 for MSVC compile; (CVS 5361)
FossilOrigin-Name: 369118ca2e9da55f44b946559ad38a14efe723e5
2008-07-08 03:04:58 +00:00
drh
f43639a0bc Test coverage improvements in printf.c. (CVS 5360)
FossilOrigin-Name: 6f2629c78327bb6cbb15d1f9900a1ef58f2d37dd
2008-07-08 02:24:02 +00:00
drh
c8d75674d6 Add tests to verify correct behavior when mutex initialization fails. (CVS 5359)
FossilOrigin-Name: 65875005ac8bc7988d7d7d8e8b999857449568fd
2008-07-08 02:12:37 +00:00
drh
fb45d8c563 Testing coverage enhancements. (CVS 5358)
FossilOrigin-Name: fe80aa58a4ac12db5a92d25d28165f5159f04533
2008-07-08 00:06:49 +00:00
drh
bd0b1b50f4 Make check-in (5356) compatible with builds that do not enable memory
management.  Remove unnecessary code from main.c.  Add out-of-memory
tests for sqlite3_complete16(). (CVS 5357)

FossilOrigin-Name: 28f8b6bfcc3e169f8a54a6681395f2c85bf99cab
2008-07-07 19:52:09 +00:00
danielk1977
da8c8f2f8f Fix an error introduced by (5346). The list could become corrupted when the database was truncated. (CVS 5356)
FossilOrigin-Name: fbd320ed27dc8910f5035b41171576b4a37cb8b9
2008-07-07 18:42:40 +00:00
danielk1977
75c5fa88e9 Fix a problem in shared_err.test preventing it from running properly and add a test to corrupt2.test to cover another corruption detection case. (CVS 5355)
FossilOrigin-Name: 2dcd5287a0d71140baa23aae2ab3d95d78a5676d
2008-07-07 17:55:28 +00:00
drh
d55d57ed5e When sqlite3_create_collation is called with an invalid encoding, return
SQLITE_MISUSE. (CVS 5354)

FossilOrigin-Name: eae4105d8a162ba80ca6fde40ae24fdc6c3eccdf
2008-07-07 17:53:07 +00:00
danielk1977
2ef684875f Fix an error checked in as part of (5350). (CVS 5353)
FossilOrigin-Name: acfb2b41ae66307ba80b6245aced9cc1d8092189
2008-07-07 17:13:08 +00:00
danielk1977
b34a4ede32 Another test case to test a specific kind of database corruption. (CVS 5352)
FossilOrigin-Name: 38e04d67635d49661f9b95338fc1cb8197bf0bc7
2008-07-07 17:04:22 +00:00
danielk1977
2b76b05dcc Add a test case to test corruption discovered as part of the ptrmapPut() routine. (CVS 5351)
FossilOrigin-Name: cbb9536fc4fb2419e0eb6f3a32c67eeb7a73da82
2008-07-07 15:39:11 +00:00
danielk1977
7eaabcdb2a Test a couple of specific malloc() failures that were not tested before. (CVS 5350)
FossilOrigin-Name: b96bcaa197519b5be89e1f6a1579f0e36fe2b644
2008-07-07 14:56:56 +00:00
drh
24b58dd717 Additional test cases added on the sqlite3_create_function() interface. (CVS 5349)
FossilOrigin-Name: 4e941f3d43556d8a503bb96e8a74451de36d243e
2008-07-07 14:50:14 +00:00
drh
a2820970c5 Add the vfs_unregister_all and vfs_reregister_all test commands. Use them
to test the sqlite3_sleep() interface when no VFSes are registered. (CVS 5348)

FossilOrigin-Name: 024d439299478062b6efdb63adce85b251af18ce
2008-07-07 13:31:58 +00:00
drh
6aa1edce9b Fix a comment in alter.c. No changes to code. (CVS 5347)
FossilOrigin-Name: 3e558acd5eb8aa5ef4681e62284af5c017a24a65
2008-07-07 12:44:58 +00:00
danielk1977
21b7ce6151 Make the Pager.pAll linked-list doubly linked when ENABLE_MEMORY_MANAGEMENT is defined. This is used to speed up sqlite3_release_memory(). (CVS 5346)
FossilOrigin-Name: 71d699de366fc9c97d4a5122e2bf754310b9b34a
2008-07-07 11:18:27 +00:00
drh
8c4d5b252e Fail to build if the -ffast-math option is specified in GCC.
Ticket #3202. (CVS 5345)

FossilOrigin-Name: aa5be9ee935ae2a45d78405e26bba2385a52563a
2008-07-06 00:21:35 +00:00
drh
45b1fac0ac Fix a bug in btree.c that caused it to report a database as being
corrupt if it used one of the last 6 slots in a freelist trunk page.
Continue to never use those last 6 slots so that databases from newer
versions are still readable with older versions. (CVS 5344)

FossilOrigin-Name: b8ff6b0a3dc2ccc51519c764a092822968a09b10
2008-07-04 17:52:42 +00:00
danielk1977
bb50e7ad76 Fix for explicitly inserting a NULL value into the rowid column of a virtual table. (CVS 5343)
FossilOrigin-Name: a7f3b431669f7392a6acba8cd8f3fa5297a916b5
2008-07-04 10:56:07 +00:00
danielk1977
2f425f6b64 Remove redundant code from sqlite3GetTempReg(). (CVS 5342)
FossilOrigin-Name: 212d05d38c8126f99c028c5ab021b219487fa01e
2008-07-04 09:41:39 +00:00
danielk1977
a7d8b85980 Remove references to temporary registers from the compiler column-cache when such registers are released. Fix for #3201. (CVS 5341)
FossilOrigin-Name: f099d6773a837dbe4ba85a8fda818e2d9466e743
2008-07-04 09:15:11 +00:00
shess
6c106e3f3b fts3 functions for testing scripts. These are a first step towards
being able to write test script which verify that fts3 is internally
building indices in the expected way.  Both new functions are only
defined if fts3.c is compiled with SQLITE_TEST defined, as when
building testfixture.  These functions are not intended to be part of
the exposed fts3 API.

dump_terms() generates a TEXT result of all the terms in the index (or
a specified segment), sorted and joined with spaces.

dump_doclist() generates a TEXT representation of the doclist
associated with a given term in the index (or a specified segment). (CVS 5340)

FossilOrigin-Name: a48e3d95f7a656285e959cef595cbe6d53428ad9
2008-07-03 19:53:21 +00:00
danielk1977
1f9caa41a0 Fix a memory leak that can occur following a malloc failure. (CVS 5339)
FossilOrigin-Name: cec4eba1a105396c5fd5d2b664456f6d6be3f215
2008-07-02 16:10:45 +00:00
danielk1977
524cc21ed6 Call the authorizer callback the same number of times whether or not the query flattening occurs. (CVS 5338)
FossilOrigin-Name: 8b88b64bb37df4e38cbfe31a14c219688b26e2af
2008-07-02 13:13:51 +00:00
danielk1977
4914cf92e3 Fix errors in in.test. Also add a few tests to selectB.test. (CVS 5337)
FossilOrigin-Name: 8f9d1abb315a3d4aa3a580fd5cf3ae572cc330f4
2008-07-01 18:26:49 +00:00
danielk1977
5e7ad50858 Fix another memory leak related to UNION ALL and sub-selects. (CVS 5336)
FossilOrigin-Name: 56109b9a1f600ab3f16769aba0d47dcf782bbc95
2008-07-01 17:39:27 +00:00
drh
4dc8ef520a In lemon: coalesce identical destructors. (CVS 5335)
FossilOrigin-Name: 3447086cd3f6e9b89a8cf61afcf4715977bbf4cd
2008-07-01 17:13:57 +00:00
drh
32c4d743bc In Lemon, if a non-terminal has the same type as a terminal, then reuse the
terminal type in the YYMINORTYPE union for the non-terminal.  This gives
better table compression. (CVS 5334)

FossilOrigin-Name: 5c9cc22cd8e9bec3d8622d2c354423281f2db0fb
2008-07-01 16:34:49 +00:00
danielk1977
eca7e01a71 Fix a memory leak to do with the recent UNION ALL sub-select optimization. (CVS 5333)
FossilOrigin-Name: 6ee71f4ddb4fa934f58c87dad2d30560af2e55d7
2008-07-01 16:05:25 +00:00
danielk1977
4b86ef1d87 Fix a problem with LIMIT and OFFSET clauses on the parent query when optimizing a UNION ALL sub-select. (CVS 5332)
FossilOrigin-Name: a79786a961dba8f4ffaddbe55e6467c14b12f7d6
2008-07-01 14:39:35 +00:00
danielk1977
f23329a221 Optimize sub-selects and views that use UNION ALL. This optimization isn't very well tested yet. (CVS 5331)
FossilOrigin-Name: 3ef468e7046b2091b5b6880fe19261ef1ee2887b
2008-07-01 14:09:13 +00:00
danielk1977
daf79acb68 Call the query flattener while processing the parent query. Previously, it was called while processing the sub-queries. (CVS 5330)
FossilOrigin-Name: 6fcb3bffe26ae1c21c72ce9019f1db1c118094a4
2008-06-30 18:12:28 +00:00
danielk1977
63703a42f1 Changes to loadext.test so that it works on osx as well as linux. (CVS 5329)
FossilOrigin-Name: 189cd85413a2e00696752bb82e7a442e86e621ac
2008-06-30 15:09:29 +00:00
danielk1977
6cb427f5c4 Fix a malloc() failure related problem in os_unix.c. (CVS 5328)
FossilOrigin-Name: ba8819a6f3dbc45d88346789de42971aacc0d246
2008-06-30 10:16:04 +00:00
danielk1977
7a8097b6d8 Add a couple of tests to see if the new compound select optimizations work when the compound select is hidden inside a view. (CVS 5327)
FossilOrigin-Name: 1a711249c25aafbaf08057ffdcbb9cf2f872f13d
2008-06-30 07:53:09 +00:00
danielk1977
986fbb8e30 Remove an assert() that was failing if there were any open incremental blob handles when a statement transaction was rolled back. (CVS 5326)
FossilOrigin-Name: f66491ab2ba3645d4e44e33ec6fa0ab94b2989be
2008-06-28 15:33:24 +00:00
mihailim
65df9db007 Added reminder message to terminate SQL statements with a semicolon on shell startup. This closes #3099. (CVS 5325)
FossilOrigin-Name: 0ab0b030dea03ec6693358b733329328828cf802
2008-06-28 11:29:22 +00:00
danielk1977
e339d65a89 Rearrange some ENABLE_LOCKING_STYLE related code in os_unix.c. (CVS 5324)
FossilOrigin-Name: f70d552bcd0df884eea2e2272bae558d35fc8845
2008-06-28 11:23:00 +00:00
mihailim
7ffb2b5f35 Changed copy-paste error in comment. Fixes #3193. (CVS 5323)
FossilOrigin-Name: 00eee53e8626591c4a0c61fe35735ec95ab3ef72
2008-06-27 18:59:44 +00:00
drh
cf538f411d Documentation tweaks. (CVS 5322)
FossilOrigin-Name: fcbd39344c0bf3a734bab6606d3988810b69b7d5
2008-06-27 14:51:52 +00:00
danielk1977
0d84e5b2a7 Fix mem3.c (broken by (5320)). (CVS 5321)
FossilOrigin-Name: fef90a21aea11f15371d3fcf44548d786dd8819b
2008-06-27 14:05:24 +00:00
danielk1977
5099be5e85 Change mem5.c so that the minimum allocation size is runtime configurable. (CVS 5320)
FossilOrigin-Name: 4f95f4cdf77e134fab42148e10198c7b008d4ae6
2008-06-27 13:27:03 +00:00
drh
6fccc35a91 Remove unused variable. Fix a compiler warning. (CVS 5319)
FossilOrigin-Name: 0b01ec5cf7725a02d4c12167df125cef578f6219
2008-06-27 00:52:45 +00:00
drh
66ba23ce86 Tweaks to the IN expression code generator. Fix an an unrelated bug
in the compound SELECT code generator. (CVS 5318)

FossilOrigin-Name: a4005782690f022e982df4873779a029b28b9306
2008-06-27 00:47:28 +00:00
drh
3c31fc23b1 Fix a bug introduced by check-in (5316). Add some VDBE comments to
the IN expression code generator. (CVS 5317)

FossilOrigin-Name: 1043a605e2dcad4b5222674efe392ee9915dc57d
2008-06-26 21:45:26 +00:00
drh
ecc31805da Avoid generating unnecessary SCopy instructions with the RHS of an IN
operator is a list of values. (CVS 5316)

FossilOrigin-Name: ec80474b1c157a29fb6978dd5575c396c57973b3
2008-06-26 20:06:06 +00:00
drh
4ead1482d8 Documentation updates in sqlite.h.in. No changes to code. (CVS 5315)
FossilOrigin-Name: 168fd6f83e2c837e91d02fa49fff3fe2f9538928
2008-06-26 18:16:05 +00:00