Commit Graph

1229 Commits

Author SHA1 Message Date
danielk1977 70b6d57373 Fix memory leak in where.c. (CVS 3271)
FossilOrigin-Name: 3d10e8f36113a189aa19ecd99007cd0a926b2f8a
2006-06-19 04:49:34 +00:00
danielk1977 b3d24bf8ee Add tests to ensure an INSERT/UPDATE/DELETE immediately after virtual table construction does not fail. (CVS 3270)
FossilOrigin-Name: 144d0eb13aed4507e93edec781b1819a068f4a70
2006-06-19 03:05:10 +00:00
drh fdb83b2fa1 Add the load_extension() SQL function. (CVS 3269)
FossilOrigin-Name: e08e2ddafe909ae6073ec56dfa3fdca23e36bf2e
2006-06-17 14:12:47 +00:00
drh 428397c143 The default entry point for loadable extensions is now
always sqlite3_extension_init(). (CVS 3268)

FossilOrigin-Name: 059b1f61406ca60fdbd3ec59c5b15fadc6552564
2006-06-17 13:21:32 +00:00
danielk1977 e7ff403ab1 Add newly created virtual tables to the current transaction. (CVS 3267)
FossilOrigin-Name: ea7e4eca106cea27d5dc447d2afcd45448152151
2006-06-17 11:30:32 +00:00
danielk1977 c69cdfd4ec Add tests (and fixes) for the virtual table transaction interface. (CVS 3265)
FossilOrigin-Name: 8a5b121f2f26bebe3f1164bc2f504d29b74400f4
2006-06-17 09:39:55 +00:00
danielk1977 4273deaec1 When updating a view, invoke the authorization callback for reading the view before setting the authorization-context to the view name. (CVS 3264)
FossilOrigin-Name: 48d297c561b8d3d670ab425115ef50d1901523b6
2006-06-17 06:31:18 +00:00
danielk1977 2867fef244 Fixes for UPDATE statements on virtual tables. (CVS 3263)
FossilOrigin-Name: 81c5a5b48b05186a1690198092ac92006d9f7020
2006-06-17 03:27:21 +00:00
drh 9c41938ff8 Rework the way UPDATE works for virtual tables. (CVS 3262)
FossilOrigin-Name: 2119e7bf5577350e4e1236ea729568085620a826
2006-06-16 21:13:21 +00:00
danielk1977 f1a381e7fc Add some tests (and fixes) for virtual tables and the authorization callback. Still more to come. (CVS 3260)
FossilOrigin-Name: 9497c66e5533ec143d0efda4a419e4bdf922ae8c
2006-06-16 08:01:02 +00:00
danielk1977 1f6eec547c Arrange for sqlite3_last_insert_rowid() to work with virtual tables. (CVS 3259)
FossilOrigin-Name: afa39a46320e9996a5478ea6e19eb4c2014327ac
2006-06-16 06:17:47 +00:00
danielk1977 176f4d23c1 Add tests (and modify test code) for writing to virtual tables. (CVS 3253)
FossilOrigin-Name: 6380a9b118cf972c3c7d4886ecdb62c44f2208ca
2006-06-15 10:41:15 +00:00
danielk1977 c7d5410126 Simple tests and fixes for writing to virtual tables. (CVS 3252)
FossilOrigin-Name: 88fa510e4c684513bbb59031d034fdb5c51a6a15
2006-06-15 07:29:00 +00:00
drh 1a90e099f4 Bug fixes in the MATCH and ORDER BY processing of virtual tables. (CVS 3249)
FossilOrigin-Name: c996185a9e0671e46bed06e5803b1ca3b42d61e2
2006-06-14 22:07:10 +00:00
danielk1977 69e777f330 Add some tests for sqlite3_load_extension(). (CVS 3239)
FossilOrigin-Name: 402a77c43d4e4dcd2e1197cfaaa2ed51249a1b8f
2006-06-14 10:38:02 +00:00
danielk1977 619a3693a2 Add tests for the new MATCH operator. (CVS 3238)
FossilOrigin-Name: b4024c394d25e5a0abdb07be779ae41581834c42
2006-06-14 08:48:25 +00:00
danielk1977 47d0809401 Add a test case for ORDER BY using the echo module. (CVS 3237)
FossilOrigin-Name: f459f034f659a4c418aa1bc72135cc93d04565df
2006-06-14 07:41:31 +00:00
danielk1977 a4e763671d Add tests for error conditions surrounding the creation/connection of virtual tables. (CVS 3235)
FossilOrigin-Name: 5e592c422b86deb5802c6536e91661717ee9bbe1
2006-06-14 06:31:28 +00:00
drh 4be8b51ee1 The echo module test is now running. Added the tclvar module test but have
not yet done anything with it. (CVS 3234)

FossilOrigin-Name: 29199eeea4c46168ccaa7535d4941bd740479dee
2006-06-13 23:51:34 +00:00
drh 7f3759015a The optimizer recognizes MATCH operators and allows virtual-tables to make
use of them. (CVS 3232)

FossilOrigin-Name: 136bed496b89943522310ec511199b78198d0844
2006-06-13 17:38:59 +00:00
danielk1977 be8a7835ea Add the tentative sqlite3_allocate_queryplan() API. (CVS 3228)
FossilOrigin-Name: 7a3e97f76b1f4f97a04f7c5a9daa400402b2ff25
2006-06-13 15:00:54 +00:00
danielk1977 5fac9f86eb Add simple tests for the xFilter and xBestIndex methods. (CVS 3227)
FossilOrigin-Name: 0f4657ea69314e49bc7c9faf9a653ef072f5082d
2006-06-13 14:16:58 +00:00
danielk1977 b7a7b9a3b9 Add implementations for opcodes required for linear scans of virtual tables. (CVS 3223)
FossilOrigin-Name: 1f20e1832b38c76d2b0dde5fd720670c2ad0438b
2006-06-13 10:24:42 +00:00
danielk1977 7dabaa126a Bugfixes: Fix a segfault introduced as part of the new vtab code, deallocate memory in the Destroy() method of the echo module. (CVS 3221)
FossilOrigin-Name: f9ea9704755eee3fd29af7a47be1d41620be8835
2006-06-13 04:11:43 +00:00
danielk1977 9e39ce87cf Add code to invoke the xDestroy method of a virtual table when it is dropped. (CVS 3218)
FossilOrigin-Name: f0c7c8d12c04376e48c6d53a29cfae3fa13b52cf
2006-06-12 16:01:21 +00:00
drh a75803d968 Fixes so that builds work with SQLITE_OMIT_VIRTUALTABLE=1. (CVS 3216)
FossilOrigin-Name: 54b30fe1bdf0c9e690e12f07dcce4382e863bf02
2006-06-12 12:50:23 +00:00
danielk1977 fe3fcbe20c Add a simple test case (and corresponding bugfix) for the virtual table xConnect and xDisconnect methods. (CVS 3214)
FossilOrigin-Name: b63dbc794795533f0bfd2d8e25633e6e3dea3ebd
2006-06-12 12:08:45 +00:00
danielk1977 7e6ebfb246 Add first cut of sqlite3_declare_vtab(). Not at all well tested yet. (CVS 3213)
FossilOrigin-Name: bbeb93b5bb26ba83ee7b7ae439ca5ceebebac9a0
2006-06-12 11:24:37 +00:00
danielk1977 78efaba10e Incremental work on parsing/storing and invoking the xCreate callback for virtual tables. (CVS 3212)
FossilOrigin-Name: 8ffbab79d5a76dea0f87cf551d5b6ad4f0fab337
2006-06-12 06:09:17 +00:00
drh b9bb7c187e Progress toward CREATE VIRTUAL TABLE. Still not even close to working... (CVS 3211)
FossilOrigin-Name: 898ec36b4102aaa03979f8f5c510936e57e2ae48
2006-06-11 23:41:55 +00:00
drh df26fd5edd In joins of the form "A left B, C" make sure they are not transformed into
"A left C, B".  Ticket #1830.  See also #1652. (CVS 3203)

FossilOrigin-Name: 2baa983653796e16d36739e37b0be1672bf59a92
2006-06-06 11:45:54 +00:00
drh 2871bd0cab Fix a windows portability problem in trans.test. (CVS 3201)
FossilOrigin-Name: f2538dfdb608b7f849bfc5fac0ec9d0d8dece4c7
2006-06-04 23:20:10 +00:00
drh f8888bb22a Allow SQL statements to be executed from within a progress callback.
Be warned, however, that the progress callback might be called
recursively in this case.  It is up to the program to disable the
progress callback to prevent recursive invocations.
Ticket #1827. (CVS 3193)

FossilOrigin-Name: ffc4730c05ea64b8c32f64b323db9b96b26bcb88
2006-05-26 19:57:19 +00:00
drh 86dac2b6be Syntax errors override errors from the code generator, not the other
way around. (CVS 3192)

FossilOrigin-Name: 5031ffc665782e7b300c498fb8be168443505add
2006-05-25 12:17:31 +00:00
drh ea063f5bb1 Handle NULL database names in ATTACH and DETACH as if they were empty
strings.  Ticket #1825. (CVS 3191)

FossilOrigin-Name: 79a818bb05bc95c4c83375a679955dd18659b2b8
2006-05-25 11:52:37 +00:00
drh f012ea3b00 When opening a new connection on a shared cache, be careful not to
overwrite the encoding flag on the shared cache.  Ticket #1824. (CVS 3190)

FossilOrigin-Name: c8e5ceedee087098c04e3b6b8b82710de0563e77
2006-05-24 12:43:26 +00:00
drh 9c0cb0e893 Additional tests for ticket #1821. (CVS 3189)
FossilOrigin-Name: b93e3fb02aeff7fe6cae56c3a45c43ffdb2f030b
2006-05-23 23:25:09 +00:00
drh 8159a35f46 Fix type coercion rules for the IN operator. Ticket #1821. (CVS 3188)
FossilOrigin-Name: 6e5a49762166a942e1b2c3beae8a30c07187eb10
2006-05-23 23:22:29 +00:00
drh ffe0f8901e Correctly handle multi-column indices where multiple columns are constrained
by IN operators with subqueries on the right-hand side.  Ticket #1807. (CVS 3184)

FossilOrigin-Name: b16541ba5e6a9514f9f317888117c68b6818f9cb
2006-05-11 13:26:25 +00:00
drh 605ad8fb69 Faster :memory: database COMMITs. Ticket #1790. (CVS 3178)
FossilOrigin-Name: 8f820e435272c0a4861421508c7e6f2979c2750f
2006-05-03 23:34:05 +00:00
drh f42bacc2f1 Get LIMIT 0 working on subqueries. Ticket #1784. (CVS 3177)
FossilOrigin-Name: 7f3ef7ddba22d69a23e656836ba76738c9652b4d
2006-04-26 17:39:34 +00:00
drh 18e87cff0a Allow constant terms in the ORDER BY or GROUP BY clauses. Ticket #1768. (CVS 3173)
FossilOrigin-Name: d83e0230c0c4909cb035e266beffc0967526d9c1
2006-04-11 14:16:21 +00:00
drh a06ab2ca23 Follow-up to check-in (3164). Make sure SQLITE_NOMEM is returned after
a memory allocation failure.  It is not sufficent to return an "out of memory"
error message.  The return code needs to be SQLITE_NOMEM. (CVS 3172)

FossilOrigin-Name: 9d95750e8556aef20a637a815652d547ed2f887c
2006-04-10 13:37:47 +00:00
drh 30bcf5dbaf Return the correct declared column type, origin column name, origin database
name, etc. from aggregate queries.  Ticket #1726 and #1755. (CVS 3169)

FossilOrigin-Name: e64809f0ae98ce9d152cf030cae72bf3df3e2403
2006-04-07 13:50:37 +00:00
drh 6103fe972e Make sure SQLITE_NOMEM is reported out on a malloc failure in an ATTACH
even if the malloc failure reports within a nested calls to sqlite3_prepare(). (CVS 3164)

FossilOrigin-Name: 3538a4e30fb5131b461bb0cf72cada63e9724e14
2006-04-05 11:57:37 +00:00
drh e4df0e7497 Properly record the names of triggers even if the name is quoted.
Ticket #1737. (CVS 3158)

FossilOrigin-Name: 4ba280ddd66d5cbf617263d6300b7582f65d47a9
2006-03-29 00:24:06 +00:00
drh 923782530b SQLite now always chooses the column names for compound selects using
the left-most select.  This makes SQLite work like other SQL database,
but it also is a change from historical behavior and may break some
scripts.  Ticket #1721. (CVS 3153)

FossilOrigin-Name: 80cda9f7ce83f2de6cd2fdaf6150bbc35b670fee
2006-03-26 01:21:22 +00:00
drh 6205d4a47b Make sure the rootpage values in the symbol table are correctly updated
when dropping tables and indices in autocommit mode.  Ticket #1728. (CVS 3150)

FossilOrigin-Name: 1c582dd11304f4421da2fa451f52b313b541270e
2006-03-24 03:36:26 +00:00
drh 5229ae4df5 Get autovacuum and in-memory databases working together. Ticket #1727. (CVS 3148)
FossilOrigin-Name: 21446df6420df00468867f1131c28604a1ae91a3
2006-03-23 23:29:04 +00:00
drh 05a8298338 Increase test coverage to above 98%. (CVS 3144)
FossilOrigin-Name: 8ae6ccc715b081cd422e847cd9e5cc22b04d8512
2006-03-19 13:00:25 +00:00