1
0
mirror of https://github.com/sqlite/sqlite.git synced 2026-10-23 21:49:02 +03:00

Clarification to the header comment on dropConstraintFunc(). No changes

to code.

FossilOrigin-Name: 4bd53fbb20d78de7bbff1154e7ee1321b93b0ede435e150ad4ee992a4108ad5a
This commit is contained in:
drh
2025-11-19 11:28:48 +00:00
parent 7423111fe1
commit b58ccaea8a
3 changed files with 16 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
C Trivial\ssimplification\sto\sthe\sALTER\sTABLE\sADD\sCONSTRAINT\scode.
D 2025-11-19T10:26:49.943
C Clarification\sto\sthe\sheader\scomment\son\sdropConstraintFunc().\s\sNo\schanges\nto\scode.
D 2025-11-19T11:28:48.761
F .fossil-settings/binary-glob 61195414528fb3ea9693577e1980230d78a1f8b0a54c78cf1b9b24d0a409ed6a x
F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
@@ -666,7 +666,7 @@ F mptest/multiwrite01.test dab5c5f8f9534971efce679152c5146da265222d
F sqlite.pc.in 42b7bf0d02e08b9e77734a47798d1a55a9e0716b
F sqlite3.1 1b9c24374a85dfc7eb8fa7c4266ee0db4f9609cceecfc5481cd8307e5af04366
F sqlite3.pc.in e6dee284fba59ef500092fdc1843df3be8433323a3733c91da96690a50a5b398
F src/alter.c 136ffded25d7bc526572de649f6392b67d1f8953286b0d73dd1db105519d2fcb
F src/alter.c 912b1f084d184a48b6c7fbf7c081678126d3743d0236c0f7399364475d255c21
F src/analyze.c 03bcfc083fc0cccaa9ded93604e1d4244ea245c17285d463ef6a60425fcb247d
F src/attach.c 9af61b63b10ee702b1594ecd24fb8cea0839cfdb6addee52fba26fa879f5db9d
F src/auth.c 54ab9c6c5803b47c0d45b76ce27eff22a03b4b1f767c5945a3a4eb13aa4c78dc
@@ -2177,8 +2177,8 @@ F tool/version-info.c 33d0390ef484b3b1cb685d59362be891ea162123cea181cb8e6d2cf6dd
F tool/warnings-clang.sh bbf6a1e685e534c92ec2bfba5b1745f34fb6f0bc2a362850723a9ee87c1b31a7
F tool/warnings.sh d924598cf2f55a4ecbc2aeb055c10bd5f48114793e7ba25f9585435da29e7e98
F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
P 31d7aeeaef20ac42c3c395dbaf7a8225ac718256a4cbeb7c198d1c7361766b1b
R 2fd8e758c3afdcc255f709fa2b96fad5
P 383965b3ba701d3627e0bbd09ad04d0ce00d4721497d82e241dc7cffa745b1d9
R 5ac491715339686ef4f784d6e85c19ed
U drh
Z 90028810bdc102a20f4d8f20f96cb730
Z aabf50dc517882f9aafdd99220ad9632
# Remove this line to create a well-formed Fossil manifest.

View File

@@ -1 +1 @@
383965b3ba701d3627e0bbd09ad04d0ce00d4721497d82e241dc7cffa745b1d9
4bd53fbb20d78de7bbff1154e7ee1321b93b0ede435e150ad4ee992a4108ad5a

View File

@@ -2464,7 +2464,15 @@ static int skipCreateTable(sqlite3_context *ctx, const u8 *zSql, int *piOff){
}
/*
** The implementation of internal function sqlite3_drop_constraint().
** Internal SQL function sqlite3_drop_constraint(): Given an input
** CREATE TABLE statement, return a revised CREATE TABLE statement
** with a constraint removed. Two forms, depending on the datatype
** of argv[2]:
**
** sqlite3_drop_constraint(SQL, INT) -- Omit NOT NULL from the INT-th column
** sqlite3_drop_constraint(SQL, TEXT) -- OMIT constraint with name TEXT
**
** In the first case, the left-most column is 0.
*/
static void dropConstraintFunc(
sqlite3_context *ctx,