dan
41fb5cd103
Shared-cache mode fixes for views and virtual tables.
...
FossilOrigin-Name: 2b370dea704b59262c604af0efcef5660b194454
2012-10-04 19:33:00 +00:00
drh
a371ace426
Change boolean fields in the Column object from unsigned characters into
...
bits in a single bit mask variable.
FossilOrigin-Name: 4163f5f194741bc2bdf141973912661c6aac70f1
2012-09-13 14:22:47 +00:00
drh
0152268793
Fix ALTER TABLE RENAME so that it correctly handles triggers that attach
...
to the table using the name in a different case.
Ticket [ae6794effd404].
FossilOrigin-Name: 0d78ebb8e41ba08b446b44694d9433e1e90e0a7e
2012-02-01 01:13:10 +00:00
drh
5d9c9da6e8
Create and use a function especially for adding the ParseSchema opcode.
...
This gives a small reduction in code and a small performance increase.
FossilOrigin-Name: 957b2ab67c6185f0e1062593d237de5c434a38bf
2011-06-03 20:11:17 +00:00
dan
be53500356
Ensure that it is not possible to add a column to a system table using ALTER TABLE.
...
FossilOrigin-Name: d9707ef8dcd29667b6d366897f6ad02c87aa0041
2011-04-01 15:15:58 +00:00
dan
39f1bcb1df
Fix some problems that can occur if a trigger has the same name as another database object.
...
FossilOrigin-Name: 655991ec8a781d67d69fc353853403b9a811acf2
2010-09-29 07:16:46 +00:00
dan
1feeaed291
Remove the Table.dbMem variable, as it is no longer being used for its original purpose.
...
FossilOrigin-Name: 6eddc6e601cf8f585c6c2cf79f36fcbfe98a307e
2010-07-23 15:41:47 +00:00
drh
545f587fc8
When commands such as ALTER TABLE and VACUUM use SQL internally, make sure
...
they use only the built-in functions and not application-defined overrides
for those functions.
FossilOrigin-Name: 0291ed974d5bf1e344e2c38422530cc961b897da
2010-04-24 14:02:59 +00:00
drh
9a6ffc845b
Fix the ALTER TABLE RENAME command so that it converts FOREIGN KEY constraints
...
in ATTACH-ed and in TEMP tables as well as in the main database.
Ticket [13336e9c3c8c3f].
FossilOrigin-Name: ab197d0aaf18016ac2dd3674f49bea5f1556451c
2010-02-15 18:03:20 +00:00
drh
c81c11f62c
Remove the obsolete "$Id:$" RCS identifier strings from the source code.
...
FossilOrigin-Name: f6c045f649036958078cb15cd9d5453680c82b0c
2009-11-10 01:30:52 +00:00
drh
d3ceeb50f3
Suppress some harmless compiler warnings.
...
FossilOrigin-Name: 5d381daa6e5248ec171aa682e2dad058d4012f24
2009-10-13 13:08:19 +00:00
drh
a172c34488
Fix a segfault that can occur following an OOM fault while renaming a
...
table holding foreign key constraints.
FossilOrigin-Name: 33973814c67bc9bac575bf2249df6530dd2184d3
2009-10-08 01:43:55 +00:00
dan
856ef1a5f9
Various fixes so that "make test" works with OMIT_FOREIGN_KEY, OMIT_TRIGGER and OMIT_ALTER_TABLE.
...
FossilOrigin-Name: e4eb227b14e4bfcb9f7f284692a391b7355f0204
2009-09-29 06:33:23 +00:00
dan
432cc5b9f3
When ALTER TABLE RENAME TO is used to change the name of a table that is the parent table of a foreign key constraint, modify that foreign key constraint to use the new table name.
...
FossilOrigin-Name: b4a10c39e726dc190e9597e382baddc034294114
2009-09-26 17:51:48 +00:00
dan
53c3fa8dbe
Prevent ALTER TABLE from being used to add a column with a REFERENCES clause and a non-NULL default value while foreign key support is enabled.
...
FossilOrigin-Name: 353b1b18253ab71ba38a887e555994f5469b87bd
2009-09-25 11:26:54 +00:00
dan
e0af83aca6
Combine the OP_Statement and OP_Transaction opcodes.
...
FossilOrigin-Name: aec9dbd8d21c55c3945287a3dfa55d3ed168f977
2009-09-08 19:15:01 +00:00
dan
165921a742
Changes to support recursive triggers.
...
FossilOrigin-Name: 9b9c19211593d5ff7b39254a29c284560a8bcedb
2009-08-28 18:53:45 +00:00
danielk1977
595a523a10
Allow virtual tables to be used in shared-cache mode. (CVS 6928)
...
FossilOrigin-Name: 5d9e767a05e381235e064061043e30cc03a11a07
2009-07-24 17:58:53 +00:00
danielk1977
0d19f7ac57
Define a set of constants to use as the "index" argument to sqlite3BtreeGetMeta and UpdateMeta. This makes some parts of the code easier to follow. (CVS 6709)
...
FossilOrigin-Name: 6dbf4eca00f845baa7200aba421d0bc158ba96aa
2009-06-03 11:25:07 +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
d300171150
Move the sqlite3MinimumFileFormat() routine from build.c over to alter.c
...
since alter.c is the only code that uses it. Additional changes and
cleanup to build.c to facility coverage testing. (CVS 6630)
FossilOrigin-Name: 6fe3750a30ab432ed476c2ae6b58972187abc624
2009-05-12 17:46:53 +00:00
drh
56d56f7aa7
Changes to alter.c to enable full branch coverage testing. (CVS 6513)
...
FossilOrigin-Name: 6a91ab08a55eacc77f69190e1126326f4da220af
2009-04-16 16:30:17 +00:00
drh
d3264c7cdf
Mark an branch in alter.c as always false. Only run the assert() on
...
the sqlite3_aggregate_count() function in func.c if the
SQLITE_OMIT_DEPRECATED compile-time option is off. (CVS 6508)
FossilOrigin-Name: c0bba77ae619e709f3fb068526073a4a83cf33b6
2009-04-15 13:39:47 +00:00
drh
d9da78a2c8
Changes to insure that lookaside memory allocations are never used to hold
...
schema content.
Ticket #3743 . (CVS 6377)
FossilOrigin-Name: ea74d8dc62f5784089aa8ef098e97c505a79b176
2009-03-24 15:08:09 +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
drh
0388123f07
Correctly handle attempts to add a UNIQUE or PRIMARY KEY column using
...
the ALTER TABLE statement. Ticket #3651 . (CVS 6291)
FossilOrigin-Name: dd179ff2986bc2a86d70bbe927fd0e123e17d398
2009-02-13 03:43:31 +00:00
danielk1977
78ca0e7eb4
When not compiling for an EBCDIC system, use built-in alternatives to the tolowe
...
r(), toupper() and other ctype.h library functions. Ticket #3597 . (CVS 6196)
FossilOrigin-Name: 1041abd6784d283bebf646c54e93599522f7889d
2009-01-20 16:53: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
danielk1977
62c14b3487
Changes to avoid "unused parameter" compiler warnings. (CVS 5921)
...
FossilOrigin-Name: 88134322c36b41304aaeef99c39b4ef5b495ca3b
2008-11-19 09:05:26 +00:00
danielk1977
f150c9de55
Fix a crash that can follow a malloc failure in sqlite3ValueFromExpr(). Ticket #3468 . (CVS 5851)
...
FossilOrigin-Name: 0996783b1b7e6dda166565071cbd19f23e7edbbc
2008-10-30 17:21: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
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
5d414839f5
Continuing work on improved test coverage. (CVS 5415)
...
FossilOrigin-Name: c942a38e9aa80770e7e2819e51b43fa7aa854d71
2008-07-15 14:47:18 +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
drh
7382945199
Fix the ALTER TABLE RENAME algorithm so that it is not confused
...
by comments in the CREATE TABLE statement. Ticket #3102 . (CVS 5110)
FossilOrigin-Name: ab18b4e75916b05863b31bc63625aa64a104a42c
2008-05-09 14:17:51 +00:00
drh
fa4a4b9159
Add a new interface, sqlite3_context_db_handle(), that returns the database
...
connection pointer for an application-defined function. (CVS 4889)
FossilOrigin-Name: 54c55cae556af5a16c0ce8be1a96d2932db80ad8
2008-03-19 21:45:51 +00:00
drh
8e5b5f8e54
ALTER TABLE uses double-quotes for quoting table names. (CVS 4781)
...
FossilOrigin-Name: 607247c27b80520b8c25c489757288b8ea186f9e
2008-02-09 14:30:29 +00:00
drh
ca4241140c
Error messages says "no such view" instead of "no such table" when
...
trying to DROP a VIEW that does not exist. (CVS 4750)
FossilOrigin-Name: 50815a82e0ec9a5c1399f5fe6ef416434b55a821
2008-01-25 15:04:48 +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
4c583128bd
Implement the out2-prerelease opcode design pattern. (CVS 4681)
...
FossilOrigin-Name: fe057a88d0038ac349ea41883b979ceba6ae410a
2008-01-04 22:01:03 +00:00
danielk1977
a29f18cdfc
Add OP_MemSet, for setting a memory cell to a string value. (CVS 4674)
...
FossilOrigin-Name: 8bb9f970dd71cbf19e45774fc822aa1efebc1724
2008-01-04 11:01:03 +00:00
danielk1977
6dbee8185c
Modify VFilter and VRename to use registers instead of the vdbe stack for inputs. (CVS 4670)
...
FossilOrigin-Name: 253ed40aa36247fc846cc41c8612cd29899d9f8f
2008-01-03 18:39:41 +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
drh
85b623f2f9
Change all instances of "it's" in comments to either "its" or "it is",
...
as appropriate, in case the comments are ever again read by a pedantic
grammarian. Ticket #2840 . (CVS 4629)
FossilOrigin-Name: 4e91a267febda572e7239f0f1cc66b3102558c36
2007-12-13 21:54:09 +00:00
danielk1977
61116ae1ca
Return an error if the user attempts to rename a view. Related to (but not a fix for) #2831 . (CVS 4623)
...
FossilOrigin-Name: 19d56d997f50be81ac2baace16b7e7a1b674301a
2007-12-13 08:15:30 +00:00
drh
a21a929e81
Use the 2-argument version of substr() in the SQL contained in the
...
VACUUM and ALTER TABLE commands. Ticket #2737 . (CVS 4499)
FossilOrigin-Name: 82b08a3dc2366007bcac4d9e451ef61c8c018fa5
2007-10-20 20:58:57 +00:00
danielk1977
26783a58e2
Use the DbMalloc() and DbRealloc() functions more consistently. (CVS 4323)
...
FossilOrigin-Name: c790c234c369c6b7610e67dcaaa9eee347df729c
2007-08-29 14:06:22 +00:00
drh
1fee73e74a
Better asserts(). But now some of the tests are busted again. (CVS 4320)
...
FossilOrigin-Name: e8060f85e7871572e2a38dc96f03e6e1f34cc8fd
2007-08-29 04:00:57 +00:00
danielk1977
cdc3a6bcbc
Fix bugs in the altermalloc.test and incrblob_err.test scripts. (CVS 4295)
...
FossilOrigin-Name: e5ec17071720a973bbd213a8b23038d3aff25315
2007-08-25 13:09:26 +00:00