Thanks to visit codestin.com
Credit goes to chromium.googlesource.com
Sign in
chromium
/
external
/
github.com
/
sqlite
/
sqlite
/
HEAD
/
src
/
fkey.c
692c160
Tighter checking of access constraints on union members in SrcItem.
by drh
· 11 months ago
b204b6a
Give unique names to fields in the SrcItem object, to facilitate analysis of
by drh
· 11 months ago
8797bd6
Reduce the size of the SrcItem object by combining fields into a union.
by drh
· 11 months ago
788ade3
Allow arbitrary expressions as the second argument to RAISE().
by drh
· 1 year, 2 months ago
enhanced-raise
d2c737f
Remove a branch that cannot affect the outcome from FkNoAction processing in
by drh
· 1 year, 9 months ago
17c3408
Add the SQLITE_CHANGESETAPPLY_FKNOACTION flag to sqlite3session.h, for passing to sqlite3changeset_apply_v2() to cause all foreign key constraints to behave as if they were declared NO ACTION.
by dan
· 1 year, 9 months ago
56a4107
Address various harmless compiler warnings from
by drh
· 2 years, 1 month ago
2142b7c
Avoid double de-quoting of table names when processing RESTRICT actions
by drh
· 2 years, 3 months ago
41ce47c
Add the new internal interface sqlite3DbNNFreeNN(db,ptr) where both the
by drh
· 2 years, 11 months ago
b192970
Fix a problem with "ON DELETE RESTRICT" and "ON UPDATE RESTRICT" foreign keys in attached databases scanning child tables in the wrong schema.
by dan
· 3 years, 3 months ago
36d2d09
Use unpacked keys for OP_Found in foreign key processing.
by drh
· 3 years, 4 months ago
895bab3
Give the virtual table xBestIndex method access to (some) OFFSET and LIMIT
by drh
· 3 years, 6 months ago
44a5c02
Clear the cache of triggers used to implement CASCADE foreign key constraints
by drh
· 3 years, 7 months ago
477572b
Protect access to the Expr.y union using nearby assert()s and branches.
by drh
· 3 years, 10 months ago
78b2fa8
Protect every access to the Table.u union using a nearby assert() or branch.
by drh
· 3 years, 10 months ago
65b4009
Store the collating sequence name for each column of a table as an
by drh
· 4 years ago
76f2477
Improved harmony with the reuse-schema branch.
by drh
· 4 years ago
cf9d36d
Refactor field names in the Column object, zCnName and zCnColl, to make them
by drh
· 4 years ago
f38524d
Refactor the Table object to reduce its memory footprint.
by drh
· 4 years ago
79cf2b7
Refactor the way that DEFAULT expressions are stored on columns, in order
by drh
· 4 years ago
7601294
Rename the "struct SrcList_item" object to the more succinct "SrcItem".
by drh
· 4 years, 5 months ago
7937f63
Avoid doing any foreign-key constraint related processing for an UPDATE statement that does not modify any columns that are part of FK constraints, even if the table has a self-referencing FK.
by dan
· 4 years, 6 months ago
dac9a5f
Allow "*" wildcards in the RETURNING clause.
by drh
· 4 years, 6 months ago
b835247
Working prototype.
by drh
· 4 years, 6 months ago
08b9208
Fix harmless compiler warnings that surface in newer versions of GCC.
by drh
· 5 years ago
dc4f6fc
During byte-code generation, strive to avoid jumps that merely jump to the
by drh
· 5 years ago
9c6a929
Fix a harmless compiler warning.
by drh
· 6 years ago
bc4974c
The SET DEFAULT and SET NULL conflict resolution actions for foreign key
by drh
· 6 years ago
dc2e331
Add another missing column number translation to the foreign key logic.
by drh
· 6 years ago
f09a14f
Add missing column translations to foreign key logic. Ticket [c28a01da72f8957c]
by drh
· 6 years ago
a1a01ff
Fix the foreign key logic to be compatible with generated columns.
by drh
· 6 years ago
31f6962
Performance optimization to the lookaside-memory disabling mechanism.
by drh
· 6 years ago
1194904
Refactor field Expr.affinity into Expr.affExpr to avoid confusion with other
by drh
· 6 years ago
55f66b3
Add new assert() statements in an attempt to help static analyzers avoid
by drh
· 6 years ago
d5c851c
Streamline the processing of the AND operator. Slightly smaller and faster.
by drh
· 6 years ago
29c992c
Revamp the SrcList allocator routines to be methods of Parse instead of
by drh
· 7 years ago
ec4ccdb
A new implementation of sqlite3VdbeMakeLabel() is faster and makes fewer
by drh
· 7 years ago
e46201e
Fix a bug in the code that detects self-referencing rows as part of foreign
by dan
· 7 years ago
eda079c
Combine the Expr.pTab and Expr.pWin fields into a union named "y". Add a new
by drh
· 7 years ago
9a047bb
Remove an unused branch in the FK logic.
by drh
· 7 years ago
dropViewNoStat
4031baf
When compiling with SQLITE_DEBUG, add run-time checks to ensure that no
by drh
· 7 years ago
8c0833f
In the parse tree, combine LIMIT and OFFSET into a single expression rooted
by drh
· 8 years ago
3b61ebb
Omit some extra code from non-SQLITE_ENABLE_UPDATE_DELETE_LIMIT builds.
by dan
· 8 years ago
update-delete-limit-fix
c456a76
When generating individual loops for each ORed term of an OR scan, move any
by dan
· 8 years ago
or-optimization
940b5ea
Avoid updating unaffected indexes on a table as part of an UPDATE that requires
by dan
· 8 years ago
fkey-optimization
79df778
Refactor the Table.nRef field as Table.nTabRef for easier grepping.
by drh
· 9 years ago
68a494c
Fix a problem causing SQLite to return false "foreign key violation" errors
by dan
· 9 years ago
abfd35e
Performance improvement and size reduction in the Expr node allocator
by drh
· 9 years ago
e1c03b6
Use sqlite3ExprAlloc() instead of sqlite3PExpr() for leaf nodes in the
by drh
· 9 years ago
69c3382
Rename the Db.zName field to Db.zDbSName to make it more descriptive and to
by drh
· 9 years ago
0b2c140
Fix a memory leak when a WITHOUT ROWID eponymous virtual table is used.
by drh
· 9 years ago
without-rowid-vtab
3875a96
Remove a redundant test for disabling RESTRICT with defer_foreign_keys=ON.
by drh
· 9 years ago
2606aca
Merge recent enhancements from trunk. Default page size is 4096. Writes
by drh
· 9 years ago
9d970c3
Small optimization in FK handling.
by mistachkin
· 9 years ago
aa9ffab
Disable the RESTRICT foreign key action if "PRAGMA defer_foreign_keys" is set.
by dan
· 9 years ago
fd37e67
Disable the RESTRICT foreign key action if "PRAGMA defer_foreign_keys" is set.
by dan
· 9 years ago
575fad6
Add the slightly faster sqlite3DbMallocRawNN(db,n) routine for the majority
by drh
· 9 years ago
oom-handling
4a642b6
Improvements to the way that OOM errors are processed.
by drh
· 9 years ago
40aced5
Add the sqlite3TokenInit() utility function.
by drh
· 9 years ago
2beb2c3
Disable the RESTRICT foreign key action if "PRAGMA defer_foreign_keys" is set.
by dan
· 10 years ago
disable-restrict
f19aa5f
Changes to the way that the default BINARY collating sequence is recorded
by drh
· 10 years ago
4b92f98
Use symbolic names XN_ROWID and XN_EXPR in place of the (-1) and (-2)
by drh
· 10 years ago
076e85f
Add the sqlite3VdbeLoadString() and sqlite3VdbeMultiLoad() routines to help
by drh
· 10 years ago
2991ba0
Add the sqlite3VdbeAddGoto(v,i) routine as a shorthand for
by drh
· 10 years ago
e910769
Use the sqlite3IndexColumnAffinity() routine to quickly and correctly find the
by drh
· 10 years ago
4640835
Ensure that tables names are dequoted exactly once by the trigger logic.
by dan
· 10 years ago
b6b676e
Fix some identifier name de-quoting issues in the foreign key and trigger logic.
by drh
· 10 years ago
e918aab
Fix foreign key CASCADE for cases where the parent key is an INTEGER PRIMARY
by drh
· 10 years ago
d457271
Fix some comments in fkey.c. Add tests to fkey8.test.
by dan
· 11 years ago
experimental-fk-actions
0466883
Experimental opimizations to speed up FK constraint CASCADE and SET NULL action processing.
by dan
· 11 years ago
60ec914
Fix typos in comments. No code changes.
by peter.d.reid
· 11 years ago
acbcb7e
Simplify the interface to the symbol table, saving 600 bytes of code space.
by drh
· 11 years ago
5f1d1d9
Refactoring: Change "pIndex->onError!=OE_None" to use a macro:
by drh
· 11 years ago
48dd1d8
Change the name of the Index.autoIndex field to Index.idxType and provide
by drh
· 11 years ago
3d77dee
Add the SQLITE_NOTNULL P5 code for comparison operations - really a composite
by drh
· 11 years ago
688852a
Add logic to do test coverage measurements on the VDBE code.
by drh
· 11 years ago
insert-optimization
57bf4a8
Avoid unnecessary calls to applyAffinity() during INSERT and UPDATE
by drh
· 11 years ago
2bea7cd
Fix harmless compiler warnings from clang scan-build.
by drh
· 12 years ago
511717c
Fix harmless compiler warnings.
by drh
· 12 years ago
2ec2fb2
Reference count the KeyInfo object. Cache a copy of an appropriate KeyInfo
by drh
· 12 years ago
f9c8ce3
Standardize the error messages generated by constraint failures to a format
by drh
· 12 years ago
90e758f
Correctly handle self-referential foreign keys on WITHOUT ROWID tables.
by drh
· 12 years ago
bd50a92
Improved comments on foreign key logic.
by drh
· 12 years ago
63f0eed
Many new test cases added, that mostly work. Currently 18 errors in
by drh
· 12 years ago
bbbdc83
The Index object now has nKeyCol and nColumn. nColumn is the total number
by drh
· 12 years ago
a8dbada
Fix handling of "DROP TABLE" commands when "PRAGMA defer_foreign_keys=1" is set.
by dan
· 12 years ago
8ff2d95
When preparing an UPDATE statement, avoid generating VDBE code for those foreign key related actions and constraint checks that may be seen to be unnecessary by considering the subset of table columns potentially modified by the UPDATE.
by dan
· 12 years ago
648e264
Add the "defer_foreign_keys" pragma and the SQLITE_DBSTATUS_DEFERRED_FKS
by drh
· 12 years ago
d91c1a1
Add extended error codes for constraint errors.
by drh
· 12 years ago
9148def
Enhance the error message for "foreign key mismatch" to include the names of
by drh
· 13 years ago
6c5b915
Prototype for PRAGMA that checks all foreign key constraints on a table.
by drh
· 13 years ago
580c8c1
Veryquick passes all tests now.
by drh
· 13 years ago
0a8a406
Some errors in veryquick resolved. Many more to go.
by drh
· 13 years ago
4b17cf5
Veryquick now row to completion without segfaulting or asserting. But there
by drh
· 13 years ago
ae80dde
Remove the Expr.pColl field and compute the collating sequence as it is needed.
by drh
· 13 years ago
a371ace
Change boolean fields in the Column object from unsigned characters into
by drh
· 13 years ago
0efb72c
Fix a problem to do with multi-or queries and automatic indexes.
by dan
· 13 years ago
b07028f
Add assert() statements and eliminate needless variable assignments in order
by drh
· 14 years ago
9147c7b
Remove an unreachable branch in the FK code.
by drh
· 14 years ago
3098dc5
Fix for [b1d3a2e531].
by dan
· 14 years ago
Next »