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
+9 -1
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,