diff options
author | drh <drh@noemail.net> | 2013-08-01 13:04:46 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2013-08-01 13:04:46 +0000 |
commit | 619a1305e77cc6382013fb1e9c406d8fb88ca600 (patch) | |
tree | dab4997708035a1e0c99a3749f6ef8cc70f56cfa /src/insert.c | |
parent | cf0fd4a5fd0cbb5f87a2dea65893b76e59d5c413 (diff) | |
download | sqlite-619a1305e77cc6382013fb1e9c406d8fb88ca600.tar.gz sqlite-619a1305e77cc6382013fb1e9c406d8fb88ca600.zip |
Fill out an initial implementation of the sqlite3ExprImpliesExpr() function.
FossilOrigin-Name: 8e07aa2ad5579aeb82174ce5bd432ddb9c058bc1
Diffstat (limited to 'src/insert.c')
-rw-r--r-- | src/insert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/insert.c b/src/insert.c index 54821f18b..1c2cabb93 100644 --- a/src/insert.c +++ b/src/insert.c @@ -1648,7 +1648,7 @@ static int xferCompatibleIndex(Index *pDest, Index *pSrc){ return 0; /* Different collating sequences */ } } - if( sqlite3ExprCompare(pSrc->pPartIdxWhere, pDest->pPartIdxWhere) ){ + if( sqlite3ExprCompare(pSrc->pPartIdxWhere, pDest->pPartIdxWhere, -1) ){ return 0; /* Different WHERE clauses */ } @@ -1806,7 +1806,7 @@ static int xferOptimization( } } #ifndef SQLITE_OMIT_CHECK - if( pDest->pCheck && sqlite3ExprListCompare(pSrc->pCheck, pDest->pCheck) ){ + if( pDest->pCheck && sqlite3ExprListCompare(pSrc->pCheck,pDest->pCheck,-1) ){ return 0; /* Tables have different CHECK constraints. Ticket #2252 */ } #endif |