1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-21 09:00:59 +03:00
Commit Graph

14444 Commits

Author SHA1 Message Date
drh
cb6d50e100 Remove references to OP_MoveTo in comments of vdbe.c - that opcode no
longer exists.  Ticket #3327. (CVS 5584)

FossilOrigin-Name: 30077ece459b515338723ca0dab11c18b9f09d21
2008-08-21 19:28:30 +00:00
drh
70a8ca3c1e Initialize the global built-in function table at start-time
instead of at compile-time.  This is less prone to malfunction when
compile-time parameters very. (CVS 5583)

FossilOrigin-Name: ef6936e50adb9ebea39c890167403fff01bbb5ed
2008-08-21 18:49:27 +00:00
danielk1977
801880f66c Fix soft-heap-limit related test suite failures. (CVS 5582)
FossilOrigin-Name: 2091d9a5260b1d7e27ff5ca93e60dae1e3b12081
2008-08-21 15:54:01 +00:00
drh
f0209f7410 Make sure "rowid" columns in views are named correctly. Ticket #3308. (CVS 5580)
FossilOrigin-Name: 8593218c7c8016fbdbcc223db951751eaba9c0dd
2008-08-21 14:54:28 +00:00
drh
6a012f04d5 Reinsert an SCopy operation that was removed in (5523) because coverage
testing indicated that it was dead code.  Ticket #3324 shows that the
code was not as dead as we thought it was. (CVS 5578)

FossilOrigin-Name: 6855711595b58d4b6fbaf9480720b788904d0e2d
2008-08-21 14:15:59 +00:00
drh
69556698e0 Patch to mkfunction to try and detect miscompiles. Add an unimportant
assert back to pcache.c. (CVS 5577)

FossilOrigin-Name: a2f375fffb49b6f6adbfd59d24e9c6a170fd5ebb
2008-08-21 12:32:11 +00:00
danielk1977
67e3da7ad4 Fix the functionality associated with sqlite3_release_memory() and sqlite3_soft_heap_limit(). It is automatically disabled if the SQLITE_CONFIG_PAGECACHE option is used. (CVS 5576)
FossilOrigin-Name: d025866b09352b32a6d35b97144eaad2fafb7165
2008-08-21 12:19:44 +00:00
danielk1977
0d3c5d3239 Move an assert() in sqlite3PcacheDirtyPage() so that it does not occur before local variable declarations. Ticket #3325. (CVS 5575)
FossilOrigin-Name: 899fa19d1ab9c40a2ffc1c5170476292d0509e33
2008-08-21 04:41:01 +00:00
danielk1977
3084952a6d Remove leftover PGHDR_TO_DATA macro from pager.c. Ticket #3323. (CVS 5574)
FossilOrigin-Name: 5e9559c0490b9e0395e1da4d36bd33942350978c
2008-08-21 04:35:18 +00:00
drh
23f79d061f Modify the sqlite3VdbeUnpackRecord() interface to force the temporary
space to be 8-byte aligned.  This might be important for Sparc.
Ticket #3318. (CVS 5573)

FossilOrigin-Name: 00b177985ee08f13a7781d095936da3beaf0408c
2008-08-20 22:06:47 +00:00
drh
41d3027ce8 Comment and function naming tweaks to pcache. No functionality changes. (CVS 5572)
FossilOrigin-Name: 4b0e67d397236c740bea88ad3a5912abe896322a
2008-08-20 21:47:45 +00:00
drh
7d10d5a6e1 Refactor the name resolution procedures in the code generator. (CVS 5569)
FossilOrigin-Name: daf730d1defa78fb8b80a78f9108ac35a13e09f6
2008-08-20 16:35:10 +00:00
danielk1977
260d8a6aec When a "pragma main.table_info(...)" is issued, consider only tables from the main database, not the temp db. Ticket #3320. (CVS 5568)
FossilOrigin-Name: d0cfbbbaeef7b8ce9f73c6cd58888989a2df5b1f
2008-08-20 16:34:24 +00:00
danielk1977
7b7e23bf65 Fix typo in main.c: SQLITE_MAX_ATTACH -> SQLITE_MAX_ATTACHED. Ticket #3319. (CVS 5567)
FossilOrigin-Name: 66ff55efd688703fe99143e4c17e8d5f119d0690
2008-08-20 16:21:12 +00:00
danielk1977
8c0a791a58 Add the pcache module from the experimental branch. Also change things so that most of the built-in SQL functions are kept in single static hash-table, rather than creating and populating a separate hash table for each open database connection. (CVS 5566)
FossilOrigin-Name: cb494e10d71852024647aaa254203579ad438ea9
2008-08-20 14:49:23 +00:00
drh
2b300d5d6f Do not flatten the right term of a LEFT join. Ticket #3300. (CVS 5565)
FossilOrigin-Name: 8947c72f93d0b79c8061a3bfd5ab595edfb155a5
2008-08-14 00:19:48 +00:00
drh
e63d999189 Additional changes toward fixing ticket #3292. (CVS 5562)
FossilOrigin-Name: 0b92cbf5255020d4fde382f81590ff0488936667
2008-08-13 19:11:48 +00:00
drh
ec1fc80ca3 A partial fix for ticket #3292. This fixes the original problem but there
are other similar problems lurking in the code still. (CVS 5561)

FossilOrigin-Name: 055f173ab1b6fb657bf817faa3a37335d8fa60d5
2008-08-13 14:07:40 +00:00
drh
93ed56d9ea Revise the initialization and shutdown logic so that it no longer keeps
a recursive mutex allocated for the whole interval but instead releases
the mutex as soon as possible.  Do not reset status values upon initialization. (CVS 5559)

FossilOrigin-Name: 697fe7a3167c22a3232ce154e9d47cf75af613c4
2008-08-12 15:21:11 +00:00
danielk1977
44a376f6b4 Fix further warnings/compilation errors in test code. (CVS 5558)
FossilOrigin-Name: 42247b917ae5a5c0d81b934200810755d0040282
2008-08-12 15:04:58 +00:00
drh
7b37c5d818 Documentation updates and clarifications in sqlite.h.in. (CVS 5557)
FossilOrigin-Name: e3935502fdca486613c8116b6057bfdd37545e58
2008-08-12 14:51:29 +00:00
danielk1977
6e89162dd1 Fix warnings and a compilation error in test code. (CVS 5556)
FossilOrigin-Name: 80c129e63ec7dbed3de1e485dffea96fae40aa6d
2008-08-12 14:48:40 +00:00
shane
20698d5cbc GCC attribute warning first appears in the 4.3.0 docs, so updated #if to specify at least that version. (CVS 5555)
FossilOrigin-Name: 46defad516bccb9921326bb4750251a3f7b5a869
2008-08-11 20:07:47 +00:00
drh
93f41e591b Make the CLI more tolerant of malformed schemas by setting the
writable_schema pragma prior to running the ".dump" command. (CVS 5554)

FossilOrigin-Name: 860babd841a7744eb8ba0e4f325fc10b348ed78b
2008-08-11 19:12:34 +00:00
drh
c456e57af7 Do not allow indexing of any table whose name begins with "sqlite_".
Ticket #3284.  Improve handling of databases with malformed schemas -
just in case somebody has actually indexed a system table. (CVS 5553)

FossilOrigin-Name: 0e1d8d14a153483e65bd0246d23db2b823a122d1
2008-08-11 18:44:58 +00:00
drh
ec0a0c8c35 The GCC magic to warn about experimental interfaces does not work
on gcc version 4.1.0.  Add #ifdefs to work around this. (CVS 5552)

FossilOrigin-Name: 90cae83169de980c6548ca6b57f4c65419e8eb13
2008-08-11 18:29:38 +00:00
shane
a79c3cc4ec Added SQLITE_EXPERIMENTAL and SQLITE_DEPRECATED tags to APIs to take advantage of compiler warnings (with the necessary function attributes.) Ticket #3142. (CVS 5551)
FossilOrigin-Name: 5f4b547aba56564cebfdd442d2171c1c8c2979ba
2008-08-11 17:27:01 +00:00
drh
812389666c Disallow empty triggers. Ticket #3283. This does not present a backwards
compatibility problem because prior to this change, an empty trigger would
segfault. (CVS 5550)

FossilOrigin-Name: 571adab9d2215fac6ed375257a070b8ffa9d9808
2008-08-11 14:26:35 +00:00
drh
bc10377a40 Move a variable initialization earlier to work around MS compiler complaints. (CVS 5549)
FossilOrigin-Name: 02232e71441efc75e0729423f635ce21809fe412
2008-08-08 18:06:25 +00:00
drh
e72e728b64 Back out part of (5546): Even though ON CONFLICT clauses on CHECK constraints
are no-ops, if a schema includes them, the database will be unreadable if
we do not at least parse and ignore the clause. (CVS 5548)

FossilOrigin-Name: efcaeb68f943daf135972ae045eff1ca157a7f22
2008-08-08 15:06:21 +00:00
drh
6382033cc5 Round lookaside buffer sizes in the right direction. Ticket #3277. (CVS 5547)
FossilOrigin-Name: c1a9bf3863b7bcc69885e4637f18c6532075f982
2008-08-08 14:33:12 +00:00
drh
200a81dcb5 Disallow the ON CONFLICT clause on CHECK constraints. The syntax used to be
allowed but never worked, so this should not present compatibility problems.
Other internal grammar simplifications. (CVS 5546)

FossilOrigin-Name: 4cedc641ed39982ae8cbb9200aa1e2f37c878b73
2008-08-08 14:19:41 +00:00
drh
a33cb5f776 Improved clarity of presentation in the tokenizer. (CVS 5545)
FossilOrigin-Name: 732657c6a639bdf71a3341f6747d19298d442ddb
2008-08-07 13:05:34 +00:00
danielk1977
1857693df8 Fix compilation with SQLITE_OMIT_FOREIGN_KEY defined. Ticket #3273. (CVS 5544)
FossilOrigin-Name: ce8cbeea51442ea963bcdf5ddc71f021fb996a37
2008-08-06 13:47:40 +00:00
danielk1977
eaed356dc2 Fix typo in comments in sqlite.h.in. Ticket #3271. (CVS 5543)
FossilOrigin-Name: 18030631e82c70e0d4d6093cd43fb0c0fa6d53c8
2008-08-06 13:40:13 +00:00
drh
b36d88abd3 Remove a reference to snprintf() in test8.c. (CVS 5538)
FossilOrigin-Name: 32d32b743642c2f6d9e4f8845a9cd07e4f83f4cd
2008-08-05 21:36:06 +00:00
drh
e50135e26d Add SQLITE_STATUS_PAGECACHE_SIZE and SQLITE_STATUS_SCRATCH_SIZE. (CVS 5537)
FossilOrigin-Name: c4e9b824062ba82a8db01cd82e3e681de1940208
2008-08-05 17:53:22 +00:00
drh
e9d1c720ee Separate verbs of sqlite3_config() and sqlite3_db_config() into their
own namespaces.  Allow SQLITE3_DBCONFIG_LOOKASIDE to specific an external
memory buffer. (CVS 5536)

FossilOrigin-Name: 5dd865da5e787c10ef4c9e96647724bfab9dea01
2008-08-04 20:13:26 +00:00
drh
d5a68d3dc8 Enhanced markings for experimental and deprecated interfaces. (CVS 5534)
FossilOrigin-Name: 7e6ec5d53d9e002848fa437ec21bf009798a9a3b
2008-08-04 13:44:57 +00:00
danielk1977
df206b0b6b Add an assert() statement that will alert us if the potential problem identified by #3243 ever becomes a reality. (CVS 5532)
FossilOrigin-Name: 34208f0ba420ca6bef16991eba200d5ed68d5430
2008-08-04 04:39:48 +00:00
danielk1977
de3e41e304 Fix (make test) with SQLITE_OMIT_COMPOUND_SELECT. Ticket #3235. (CVS 5530)
FossilOrigin-Name: 9ca975c8fdeaae7d5af8fe62e097d8d251362cfe
2008-08-04 03:51:24 +00:00
danielk1977
a68468f5b1 Fix a reference count leak introduced by (5526). (CVS 5527)
FossilOrigin-Name: f653995c32197cacbcd14ea9e876ba5b2fde94df
2008-08-02 17:36:45 +00:00
danielk1977
f328bea9da Avoid doing IO purely to check assert() constraints. (CVS 5526)
FossilOrigin-Name: fb26ae723959390a716f221af93c6c29eec16955
2008-08-02 17:03:31 +00:00
danielk1977
9dbee7dc1c Fix a bug introduced by (5519) causing builds with SQLITE_OMIT_VIRTUALTABLE to malfunction. (CVS 5525)
FossilOrigin-Name: 761e73ceab77f965d58546ecf493f65cf52456fc
2008-08-02 15:32:39 +00:00
danielk1977
5a114caddf Increase the ref-count on the sqlite3_vtab structure before calling either the xNext or xFilter methods. (CVS 5524)
FossilOrigin-Name: 6e41455f2c7ee57c60578541040631b899e1481f
2008-08-02 15:10:08 +00:00
drh
701bb3b4f0 Additional coverage testing. Fix a segfault following OOM in
sqltie3_load_extension(). (CVS 5523)

FossilOrigin-Name: f1e44eb323f05495cbae25113aebcc50d16b40df
2008-08-02 03:50:39 +00:00
drh
c890fec362 Bring test coverage up to 99%. (CVS 5522)
FossilOrigin-Name: 2cd6bae80984126023bcf479e5f3db5eaa5c4134
2008-08-01 20:10:08 +00:00
drh
4cfb22f798 Fix problems in test scripts. Add new test cases to improve test coverage. (CVS 5521)
FossilOrigin-Name: b65f493c7519e8a5ee632a395b57d45269741dda
2008-08-01 18:47:01 +00:00
danielk1977
987a00e8b5 Also test that setting sqlite3_vtab.zErrMsg works from within the xRename method. (CVS 5520)
FossilOrigin-Name: 4f4a9ccae7d25b9856d1203f6b289d552c2b425e
2008-08-01 17:51:47 +00:00
danielk1977
3e3a84d32a Test that virtual table methods xBestIndex, xOpen, xFilter, xNext, xColumn, xRowid, xUpdate, xSync and xBegin can all return error messages using the sqlite3_vtab.zErrMsg variable. (CVS 5519)
FossilOrigin-Name: 007359b770f225877880b11f4c5d97bb548e38ca
2008-08-01 17:37:40 +00:00