diff options
Diffstat (limited to 'src/build.c')
-rw-r--r-- | src/build.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/build.c b/src/build.c index 091498fc5..f1ef19b38 100644 --- a/src/build.c +++ b/src/build.c @@ -1615,6 +1615,11 @@ static void convertToWithoutRowidTable(Parse *pParse, Table *pTab){ assert( pPk!=0 ); nPk = pPk->nKeyCol; + /* Make sure every column of the PRIMARY KEY is NOT NULL */ + for(i=0; i<nPk; i++){ + pTab->aCol[pPk->aiColumn[i]].notNull = 1; + } + /* Update the in-memory representation of all UNIQUE indices by converting ** the final rowid column into one or more columns of the PRIMARY KEY. */ |