diff options
author | drh <drh@noemail.net> | 2010-01-07 15:17:02 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2010-01-07 15:17:02 +0000 |
commit | 1d9da70ad7602c63646ba84312c912ee3ea842a4 (patch) | |
tree | 4db790023d2cea9302a5b40eb062533fe6118cff /src/insert.c | |
parent | 93a696f61bce669693fb0eb9cdb7fef7f4b9a57d (diff) | |
download | sqlite-1d9da70ad7602c63646ba84312c912ee3ea842a4.tar.gz sqlite-1d9da70ad7602c63646ba84312c912ee3ea842a4.zip |
Fix the expression comparison logic to take the COLLATE operator into account.
Ticket [360c6073e197]
FossilOrigin-Name: 44bb1bfe5dedd8054ddd933941ee4112ed8d3b68
Diffstat (limited to 'src/insert.c')
-rw-r--r-- | src/insert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/insert.c b/src/insert.c index 5266af324..9bd908534 100644 --- a/src/insert.c +++ b/src/insert.c @@ -1715,7 +1715,7 @@ static int xferOptimization( } } #ifndef SQLITE_OMIT_CHECK - if( pDest->pCheck && !sqlite3ExprCompare(pSrc->pCheck, pDest->pCheck) ){ + if( pDest->pCheck && sqlite3ExprCompare(pSrc->pCheck, pDest->pCheck) ){ return 0; /* Tables have different CHECK constraints. Ticket #2252 */ } #endif |