drh
3d5f74b275
Alternative fix for ticket #3810 . This is a replacement for check-in (6956). (CVS 6960)
...
FossilOrigin-Name: ba1afc040171810d0c996708d7b9cb11abcd99d8
2009-08-06 17:43:31 +00:00
drh
33e619fc1c
Additional refinements to Expr handling. Restore compression of trigger
...
expressions. Change Expr.zToken to Expr.u.zToken and added Expr.u.iValue.
Remove an unnecessary ExprDup from CHECK constraint processing. And so forth. (CVS 6682)
FossilOrigin-Name: 4ac2bdfbb4230b6ceaae87e738fa61036bbe03cb
2009-05-28 01:00:55 +00:00
drh
b7916a78ff
Simplifications to the Expr object: Remove Expr.span completely and convert
...
Expr.token into a char* Expr.zToken. Also simplify the Token object by
removing the Token.dyn and Token.quoted fields. (CVS 6681)
FossilOrigin-Name: 7cb1c3ba0759539cb035978fdaff6316775986f3
2009-05-27 10:31:29 +00:00
drh
9ab4c2e880
Changes to the trigger.c module that facilitate full coverage testing. (CVS 6621)
...
FossilOrigin-Name: 567ccc68cc8c73b952a91c71a0e00b08bb25c689
2009-05-09 00:18:38 +00:00
drh
6a863cdad8
Fix three variable initialization problems found by valgrind. (CVS 6612)
...
FossilOrigin-Name: 37428435978027f6baffa552306dd5dc29ce5cd5
2009-05-06 18:42:21 +00:00
drh
a83ccca794
Do not store the zero string terminator as part of the name when holding
...
symbols in the symbol table. (CVS 6557)
FossilOrigin-Name: 23d67af39227aeade2ea0292e1b8844eea580993
2009-04-28 13:01:09 +00:00
drh
ceea33217b
Rework the column-cache mechanism to be more robust (and more correct).
...
The column-alias cache is currently disabled, (CVS 6538)
FossilOrigin-Name: dd4d67a67454a3ff13c286a2a8360c5f0432c91d
2009-04-23 13:22:42 +00:00
danielk1977
2f886d1d53
Instead of linking temporary triggers on non-temporary tables into the Table.pTrigger list, search the temp schema for them on demand. Fix for #3688 . (CVS 6329)
...
FossilOrigin-Name: 3befe1ef7e6ebddedfa69579553a1b85b411ee98
2009-02-28 10:47:41 +00:00
danielk1977
6ab3a2ec8a
Changes to reduce the heap space consumed by triggers, views and tables in the in-memory representation of the schema. Also to reduce the space used by prepared statements slightly. (CVS 6305)
...
FossilOrigin-Name: d9f6ffbc5ea090ba0daac571fc9a6c68b9c864e4
2009-02-19 14:39:25 +00:00
danielk1977
45783d0148
Reset the column cache before coding each step of a trigger program. Candidate fix for #3554 . (CVS 6065)
...
FossilOrigin-Name: a1b1f6cd7d2c060bd75ce39347e1220b872806ed
2008-12-26 07:56:39 +00:00
drh
ea6788322e
Never use strlen(). Use our own internal sqlite3Strlen30() which is
...
guaranteed to never overflow an integer. Additional explicit casts to
avoid nuisance warning messages. (CVS 6007)
FossilOrigin-Name: c872d554930ecf221ac2be5f886d5d67bb35288c
2008-12-10 19:26:22 +00:00
drh
aa78bec993
Get rid of more silly compiler warnings. (CVS 5996)
...
FossilOrigin-Name: 59ae0020683766993c38e2b76a436d78d3e4bd63
2008-12-09 03:55:14 +00:00
danielk1977
62c14b3487
Changes to avoid "unused parameter" compiler warnings. (CVS 5921)
...
FossilOrigin-Name: 88134322c36b41304aaeef99c39b4ef5b495ca3b
2008-11-19 09:05:26 +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
drh
633e6d57d9
Implement the "lookaside" memory allocation cache. Use of this cache makes
...
the speed1.test script run about 15% faster. Added new interfaces to
control the cache. (CVS 5488)
FossilOrigin-Name: e48f9697e9fea339e150ddc32940760027dd07d9
2008-07-28 19:34:53 +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
danielk1977
822a51628f
Add more version tags to files that lack them. Ticket #3120 . (CVS 5137)
...
FossilOrigin-Name: 81a8c70ed7a86abf286706fdbc251f31c9c53382
2008-05-16 04:51:54 +00:00
drh
9cbf3425fb
Registerification of the VDBE is complete. The operand stack has been
...
removed from the code. All instructions operate out of registers only. (CVS 4718)
FossilOrigin-Name: 706b41b70bd1e2030e6fa44358c38a26c5cf0985
2008-01-17 16:22:13 +00:00
drh
1db639cef3
Registerification of the WHERE clause logic. (CVS 4716)
...
FossilOrigin-Name: b3a141b2b0c09bf3c7704deeade290d71b7c9b77
2008-01-17 02:36:28 +00:00
drh
0e359b30a9
Fix some issues with out-of-memory recovery. (CVS 4710)
...
FossilOrigin-Name: 23181f86896e7c9e993e00032e735e67ee6b2e71
2008-01-13 19:02:11 +00:00
drh
949f9cd565
The sqlite3_trace() callback now prints a message as each trigger fires
...
within a statement. (CVS 4709)
FossilOrigin-Name: 110c000d86bd4a0b4b946c62d11a435426b02d16
2008-01-12 21:35:57 +00:00
drh
2d401ab8f9
More work toward converting the VM into a register-based machine. (CVS 4704)
...
FossilOrigin-Name: 8cbd46517f407b3b1ce187b623db10f00aa415ea
2008-01-10 23:50:11 +00:00
drh
3557335658
Registerify the comparison opcodes. (CVS 4697)
...
FossilOrigin-Name: 8862ce9ceefba4f5d1ffbd51d824c05f42a58c22
2008-01-08 23:54:25 +00:00
drh
1013c9320d
Registerify the SRT_Subroutine destination for SELECT results. (CVS 4690)
...
FossilOrigin-Name: 8201f71729c3afbb41764cea3cda65b03150cb0c
2008-01-06 00:25:21 +00:00
drh
b1fdb2adea
Get rid of OP_Dup, OP_MemStore, OP_MemLoad, and OP_MemMove. Replace
...
with OP_Copy, OP_SCopy, and OP_Move. Add the infrastructure for
operation properties in1, in2, in3, out2, and out3 but do not yet
use any of these. (CVS 4682)
FossilOrigin-Name: cc149eb9ca3c672cc6fea3528353234ac2ed5745
2008-01-05 04:06:03 +00:00
drh
0a07c107a6
Registers (aka memory cells) in the VM are now numbered starting with 1
...
instead of 0. A register number of 0 means "no such register". (CVS 4669)
FossilOrigin-Name: 0b849805c3a0f562d50623f406279b400d335639
2008-01-03 18:03:08 +00:00
danielk1977
1f4aa337cd
Change the OP_Insert opcode to read the key and data to insert from memory cells, not the stack. (CVS 4666)
...
FossilOrigin-Name: 46501f490a5f5577ea31c758df749e02c7c65f39
2008-01-03 09:51:55 +00:00
drh
2400345a32
Revamp sqlite3VdbeAddOpList() so that the structure holds integer values
...
for P1, P2, and P3. (CVS 4661)
FossilOrigin-Name: 4dc507d87b242619fe32606452227900e16a6de7
2008-01-03 01:28:59 +00:00
drh
66a5167b47
Refactoring the VM. The P3 parameter is changed to P4. A P5 parameter is
...
added (though not currently used.) Add routines sqlite3VdbeAddOpX() where
X is one of 0, 1, 2, 3, or 4. (CVS 4660)
FossilOrigin-Name: 027875e4d4c4bd7686dc880c6917a968049b2fec
2008-01-03 00:01:23 +00:00
danielk1977
6c8c8ce0e2
Combine the eDest and iParm arguments to sqlite3Select() into a single type - "SelectDest". (CVS 4657)
...
FossilOrigin-Name: 86dcdfe6d7d629618ccb3c3ff0ca09f2da2d06c7
2008-01-02 16:27:09 +00:00
drh
d4e70ebd6f
Begin setting a foundation on which to convert the VM from a stack-based
...
to a register-based machine. Everything is still mostly stack based with
this check-in. This change merely begins adding infrastructure to support
a register-based architecture. (CVS 4652)
FossilOrigin-Name: 051ec01f2799e095516015f2ef0180e50fac387c
2008-01-02 00:34:36 +00:00
danielk1977
8f2c54e6e2
Optimize trigger compilation to avoid populating the OLD.* and NEW.* pseudo-tables with data that will never be used. Some testing to come. (CVS 4651)
...
FossilOrigin-Name: e08a33ed7255c22ce2805363f44a1d7770acb2dd
2008-01-01 19:02:09 +00:00
danielk1977
932083c60f
Fix a crash that can occur after a malloc failure. Ticket #2775 . (CVS 4547)
...
FossilOrigin-Name: c91bc8d33306881cb2501070dccced92c82cf165
2007-11-16 14:55:46 +00:00
drh
f3a65f7e44
The malloc.test script now passes all tests with no errors. (CVS 4271)
...
FossilOrigin-Name: db818430e9ea4ef4a4af575784009d5acae785a3
2007-08-22 20:18:21 +00:00
danielk1977
1e5369531e
More work on refactoring of malloc() interfaces. There are still many errors. (CVS 4233)
...
FossilOrigin-Name: 77b1671351fe94b0ebc126a63140643deae2aa64
2007-08-16 10:09:01 +00:00
drh
174357527a
Half-way through a major refactoring of the memory allocation.
...
I have not even attempted to compile so I am certain there are
countless errors. (CVS 4231)
FossilOrigin-Name: deb7ecd65f7b83eaf0ba610eeef3b0ede61db1c3
2007-08-16 04:30:38 +00:00
drh
fd131daecd
Remove all tabs from source code files. Ticket #2556 . (CVS 4198)
...
FossilOrigin-Name: 7550dd1d5980a399fbb06b4ed69216700f879a0b
2007-08-07 17:13:03 +00:00
drh
60218d2a0e
The FOR EACH STATEMENT clause in a trigger is now a syntax error. It used
...
to be silently ignored. STATEMENT is no longer a keyword. (CVS 3821)
FossilOrigin-Name: 8e2559b4da6329d7c21925d0850f7f91a3731975
2007-04-06 11:26:00 +00:00
drh
b63a53dcf7
Fix memory leaks in WHERE clause processing and in TRIGGER parsing. (CVS 3775)
...
FossilOrigin-Name: 6736f4547c0cc2123d1a19ed2d6915712718d22e
2007-03-31 01:34:44 +00:00
drh
0e3a6f3f53
Fix a memory leak that occurs after a malloc failure in trigger parsing. (CVS 3772)
...
FossilOrigin-Name: 407a85e69b7a1229218a5ce9a9e31255c7070294
2007-03-30 20:40:34 +00:00
drh
28f4591466
Fix a problems that arise if malloc() fails while compiling SELECT
...
statements within a TRIGGER. (CVS 3478)
FossilOrigin-Name: ee4894b49995e4904db1991281563cfbb7b1c16d
2006-10-18 23:26:38 +00:00
drh
fdd48a76a6
Add support for IF EXISTS on CREATE/DROP TRIGGER/VIEW. Ticket #1899 . (CVS 3406)
...
FossilOrigin-Name: e4fe736cfbbdc081581911a01690576034877b72
2006-09-11 23:45:48 +00:00
drh
4cbdda9e27
Added code to INSERT, DELETE and UPDATE virtual tables. The new code is
...
mostly untested. (CVS 3248)
FossilOrigin-Name: 32c97b884b104d120db3c0a87f5eab28f36851f8
2006-06-14 19:00:20 +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
229caa369a
Add code to report an error on a recursive trigger, but leave it
...
commented out - turning it on will likely break a lot of code. (CVS 3152)
FossilOrigin-Name: c83ec81d53f756660cafbbdaf9cf92e9e4bab4ad
2006-03-25 15:52:19 +00:00
drh
43617e9ab9
Code changes resulting from Coverity analysis.
...
http://scan.coverity.com/ Found 1 potential segfault in sqlite3_mprintf().
Also 2 failures to fclose() following a malloc() failure. And lots of
cases where unnecessary conditionals could be removed from the code. (CVS 3126)
FossilOrigin-Name: e510e6dd9d6261f33b853af3b32d155b9d6b63b3
2006-03-06 20:55:46 +00:00
drh
74161705f1
Remove unused parameters on internal APIs. Suppress warnings from
...
CodeWarrior. (CVS 3110)
FossilOrigin-Name: 4b22e4b847f8d5c29830baea541194ef3a0c4811
2006-02-24 02:53:49 +00:00
danielk1977
9e12800dec
Use a global variable protected by a mutex instead of thread-specific-data to record malloc() failures. (CVS 2972)
...
FossilOrigin-Name: ac090f2ab3b5a792c2fdf897e10060f263e0d408
2006-01-18 16:51:35 +00:00
drh
6f7adc8a80
Automatically deallocate thread-specific data when it is no longer
...
being used. Ticket #1601 . Also implemented the suggestion of
ticket #1603 . Memory management is now off by default at compile-time.
The sqlite3_enable_memory_management() API has been removed. (CVS 2919)
FossilOrigin-Name: 5d9c6aa964305c3f36741ff0058da5b5f3ce0d24
2006-01-11 21:41:20 +00:00
danielk1977
eecfb3eebc
Fix a problem with shared-schemas and temp triggers. (CVS 2901)
...
FossilOrigin-Name: 9c18a1ce1e7ff6a02eb0f9ce344cab9660819740
2006-01-10 12:31:39 +00:00