aboutsummaryrefslogtreecommitdiff
path: root/src/trigger.c
Commit message (Collapse)AuthorAge
...
* Fix three variable initialization problems found by valgrind. (CVS 6612)drh2009-05-06
| | | FossilOrigin-Name: 37428435978027f6baffa552306dd5dc29ce5cd5
* Do not store the zero string terminator as part of the name when holdingdrh2009-04-28
| | | | | symbols in the symbol table. (CVS 6557) FossilOrigin-Name: 23d67af39227aeade2ea0292e1b8844eea580993
* Rework the column-cache mechanism to be more robust (and more correct).drh2009-04-23
| | | | | The column-alias cache is currently disabled, (CVS 6538) FossilOrigin-Name: dd4d67a67454a3ff13c286a2a8360c5f0432c91d
* Instead of linking temporary triggers on non-temporary tables into the ↵danielk19772009-02-28
| | | | | Table.pTrigger list, search the temp schema for them on demand. Fix for #3688. (CVS 6329) FossilOrigin-Name: 3befe1ef7e6ebddedfa69579553a1b85b411ee98
* Changes to reduce the heap space consumed by triggers, views and tables in ↵danielk19772009-02-19
| | | | | the in-memory representation of the schema. Also to reduce the space used by prepared statements slightly. (CVS 6305) FossilOrigin-Name: d9f6ffbc5ea090ba0daac571fc9a6c68b9c864e4
* Reset the column cache before coding each step of a trigger program. ↵danielk19772008-12-26
| | | | | Candidate fix for #3554. (CVS 6065) FossilOrigin-Name: a1b1f6cd7d2c060bd75ce39347e1220b872806ed
* Never use strlen(). Use our own internal sqlite3Strlen30() which isdrh2008-12-10
| | | | | | guaranteed to never overflow an integer. Additional explicit casts to avoid nuisance warning messages. (CVS 6007) FossilOrigin-Name: c872d554930ecf221ac2be5f886d5d67bb35288c
* Get rid of more silly compiler warnings. (CVS 5996)drh2008-12-09
| | | FossilOrigin-Name: 59ae0020683766993c38e2b76a436d78d3e4bd63
* Changes to avoid "unused parameter" compiler warnings. (CVS 5921)danielk19772008-11-19
| | | FossilOrigin-Name: 88134322c36b41304aaeef99c39b4ef5b495ca3b
* Refactor the name resolution procedures in the code generator. (CVS 5569)drh2008-08-20
| | | FossilOrigin-Name: daf730d1defa78fb8b80a78f9108ac35a13e09f6
* Implement the "lookaside" memory allocation cache. Use of this cache makesdrh2008-07-28
| | | | | | the speed1.test script run about 15% faster. Added new interfaces to control the cache. (CVS 5488) FossilOrigin-Name: e48f9697e9fea339e150ddc32940760027dd07d9
* Remove obsolete code from select.c, including the "affinity" parameterdrh2008-07-08
| | | | | to the sqlite3Select() module. (CVS 5380) FossilOrigin-Name: cbd3c1585b7a8f8042aa1448fe1be87de056c41a
* Add more version tags to files that lack them. Ticket #3120. (CVS 5137)danielk19772008-05-16
| | | FossilOrigin-Name: 81a8c70ed7a86abf286706fdbc251f31c9c53382
* Registerification of the VDBE is complete. The operand stack has beendrh2008-01-17
| | | | | removed from the code. All instructions operate out of registers only. (CVS 4718) FossilOrigin-Name: 706b41b70bd1e2030e6fa44358c38a26c5cf0985
* Registerification of the WHERE clause logic. (CVS 4716)drh2008-01-17
| | | FossilOrigin-Name: b3a141b2b0c09bf3c7704deeade290d71b7c9b77
* Fix some issues with out-of-memory recovery. (CVS 4710)drh2008-01-13
| | | FossilOrigin-Name: 23181f86896e7c9e993e00032e735e67ee6b2e71
* The sqlite3_trace() callback now prints a message as each trigger firesdrh2008-01-12
| | | | | within a statement. (CVS 4709) FossilOrigin-Name: 110c000d86bd4a0b4b946c62d11a435426b02d16
* More work toward converting the VM into a register-based machine. (CVS 4704)drh2008-01-10
| | | FossilOrigin-Name: 8cbd46517f407b3b1ce187b623db10f00aa415ea
* Registerify the comparison opcodes. (CVS 4697)drh2008-01-08
| | | FossilOrigin-Name: 8862ce9ceefba4f5d1ffbd51d824c05f42a58c22
* Registerify the SRT_Subroutine destination for SELECT results. (CVS 4690)drh2008-01-06
| | | FossilOrigin-Name: 8201f71729c3afbb41764cea3cda65b03150cb0c
* Get rid of OP_Dup, OP_MemStore, OP_MemLoad, and OP_MemMove. Replacedrh2008-01-05
| | | | | | | 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
* Registers (aka memory cells) in the VM are now numbered starting with 1drh2008-01-03
| | | | | instead of 0. A register number of 0 means "no such register". (CVS 4669) FossilOrigin-Name: 0b849805c3a0f562d50623f406279b400d335639
* Change the OP_Insert opcode to read the key and data to insert from memory ↵danielk19772008-01-03
| | | | | cells, not the stack. (CVS 4666) FossilOrigin-Name: 46501f490a5f5577ea31c758df749e02c7c65f39
* Revamp sqlite3VdbeAddOpList() so that the structure holds integer valuesdrh2008-01-03
| | | | | for P1, P2, and P3. (CVS 4661) FossilOrigin-Name: 4dc507d87b242619fe32606452227900e16a6de7
* Refactoring the VM. The P3 parameter is changed to P4. A P5 parameter isdrh2008-01-03
| | | | | | added (though not currently used.) Add routines sqlite3VdbeAddOpX() where X is one of 0, 1, 2, 3, or 4. (CVS 4660) FossilOrigin-Name: 027875e4d4c4bd7686dc880c6917a968049b2fec
* Combine the eDest and iParm arguments to sqlite3Select() into a single type ↵danielk19772008-01-02
| | | | | - "SelectDest". (CVS 4657) FossilOrigin-Name: 86dcdfe6d7d629618ccb3c3ff0ca09f2da2d06c7
* Begin setting a foundation on which to convert the VM from a stack-baseddrh2008-01-02
| | | | | | | 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
* Optimize trigger compilation to avoid populating the OLD.* and NEW.* ↵danielk19772008-01-01
| | | | | pseudo-tables with data that will never be used. Some testing to come. (CVS 4651) FossilOrigin-Name: e08a33ed7255c22ce2805363f44a1d7770acb2dd
* Fix a crash that can occur after a malloc failure. Ticket #2775. (CVS 4547)danielk19772007-11-16
| | | FossilOrigin-Name: c91bc8d33306881cb2501070dccced92c82cf165
* The malloc.test script now passes all tests with no errors. (CVS 4271)drh2007-08-22
| | | FossilOrigin-Name: db818430e9ea4ef4a4af575784009d5acae785a3
* More work on refactoring of malloc() interfaces. There are still many ↵danielk19772007-08-16
| | | | | errors. (CVS 4233) FossilOrigin-Name: 77b1671351fe94b0ebc126a63140643deae2aa64
* Half-way through a major refactoring of the memory allocation.drh2007-08-16
| | | | | | I have not even attempted to compile so I am certain there are countless errors. (CVS 4231) FossilOrigin-Name: deb7ecd65f7b83eaf0ba610eeef3b0ede61db1c3
* Remove all tabs from source code files. Ticket #2556. (CVS 4198)drh2007-08-07
| | | FossilOrigin-Name: 7550dd1d5980a399fbb06b4ed69216700f879a0b
* The FOR EACH STATEMENT clause in a trigger is now a syntax error. It useddrh2007-04-06
| | | | | to be silently ignored. STATEMENT is no longer a keyword. (CVS 3821) FossilOrigin-Name: 8e2559b4da6329d7c21925d0850f7f91a3731975
* Fix memory leaks in WHERE clause processing and in TRIGGER parsing. (CVS 3775)drh2007-03-31
| | | FossilOrigin-Name: 6736f4547c0cc2123d1a19ed2d6915712718d22e
* Fix a memory leak that occurs after a malloc failure in trigger parsing. ↵drh2007-03-30
| | | | | (CVS 3772) FossilOrigin-Name: 407a85e69b7a1229218a5ce9a9e31255c7070294
* Fix a problems that arise if malloc() fails while compiling SELECTdrh2006-10-18
| | | | | statements within a TRIGGER. (CVS 3478) FossilOrigin-Name: ee4894b49995e4904db1991281563cfbb7b1c16d
* Add support for IF EXISTS on CREATE/DROP TRIGGER/VIEW. Ticket #1899. (CVS 3406)drh2006-09-11
| | | FossilOrigin-Name: e4fe736cfbbdc081581911a01690576034877b72
* Added code to INSERT, DELETE and UPDATE virtual tables. The new code isdrh2006-06-14
| | | | | mostly untested. (CVS 3248) FossilOrigin-Name: 32c97b884b104d120db3c0a87f5eab28f36851f8
* Properly record the names of triggers even if the name is quoted.drh2006-03-29
| | | | | Ticket #1737. (CVS 3158) FossilOrigin-Name: 4ba280ddd66d5cbf617263d6300b7582f65d47a9
* Add code to report an error on a recursive trigger, but leave itdrh2006-03-25
| | | | | commented out - turning it on will likely break a lot of code. (CVS 3152) FossilOrigin-Name: c83ec81d53f756660cafbbdaf9cf92e9e4bab4ad
* Code changes resulting from Coverity analysis.drh2006-03-06
| | | | | | | 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
* Remove unused parameters on internal APIs. Suppress warnings fromdrh2006-02-24
| | | | | CodeWarrior. (CVS 3110) FossilOrigin-Name: 4b22e4b847f8d5c29830baea541194ef3a0c4811
* Use a global variable protected by a mutex instead of thread-specific-data ↵danielk19772006-01-18
| | | | | to record malloc() failures. (CVS 2972) FossilOrigin-Name: ac090f2ab3b5a792c2fdf897e10060f263e0d408
* Automatically deallocate thread-specific data when it is no longerdrh2006-01-11
| | | | | | | 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
* Fix a problem with shared-schemas and temp triggers. (CVS 2901)danielk19772006-01-10
| | | FossilOrigin-Name: 9c18a1ce1e7ff6a02eb0f9ce344cab9660819740
* Rename DbSchema to "Schema" and SqliteTsd to "ThreadData". (CVS 2893)danielk19772006-01-09
| | | FossilOrigin-Name: 82b81f69c78cb3f54634d9aea4f6a838474dc5e5
* In shared-cache mode, lock all required tables before beginning to execute ↵danielk19772006-01-07
| | | | | the body of the statement program. (CVS 2881) FossilOrigin-Name: 23b587b05b89727248805e6d9e5141e018cf2152
* Fix a crash caused by adding a trigger to a shared-schema and then deleting itdanielk19772006-01-06
| | | | | using a different connection. (CVS 2873) FossilOrigin-Name: 19f93e135f1ff4f987d14afe74b955e119904017
* Add the shared schema/pager modifications. Very few tests so far. (CVS 2859)danielk19772006-01-05
| | | FossilOrigin-Name: deeda0dc06c1595aedd8d06a0c4e88a8abf78cf7