diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 17:30:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 17:30:14 +0000 |
commit | 30fbe79b8982a0d592ceff1f35038a83807a5e3b (patch) | |
tree | ec0680f5cd4232878365ff07b42e860a3da6178b /src/insert.c | |
parent | Adding debian version 3.45.2-1. (diff) | |
download | sqlite3-30fbe79b8982a0d592ceff1f35038a83807a5e3b.tar.xz sqlite3-30fbe79b8982a0d592ceff1f35038a83807a5e3b.zip |
Merging upstream version 3.45.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/insert.c')
-rw-r--r-- | src/insert.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/insert.c b/src/insert.c index 095298b..c2c2f7c 100644 --- a/src/insert.c +++ b/src/insert.c @@ -2978,7 +2978,10 @@ static int xferOptimization( } } #ifndef SQLITE_OMIT_CHECK - if( pDest->pCheck && sqlite3ExprListCompare(pSrc->pCheck,pDest->pCheck,-1) ){ + if( pDest->pCheck + && (db->mDbFlags & DBFLAG_Vacuum)==0 + && sqlite3ExprListCompare(pSrc->pCheck,pDest->pCheck,-1) + ){ return 0; /* Tables have different CHECK constraints. Ticket #2252 */ } #endif |