From: drh Date: Thu, 29 Mar 2007 00:08:24 +0000 (+0000) Subject: Patch so the the code compiles with -DSQLITE_OMIT_CHECK=1. (CVS 3737) X-Git-Tag: version-3.6.10~2433 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7fc2f41bef4187ece56d2f51ff2dc90c544ec94c;p=thirdparty%2Fsqlite.git Patch so the the code compiles with -DSQLITE_OMIT_CHECK=1. (CVS 3737) FossilOrigin-Name: 72cea358da4bd38af322f18f2a753171f7decaf8 --- diff --git a/manifest b/manifest index 62f63e16b2..945b021d54 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Improvements\sto\sthe\sXFER\sOptimization\sof\sthe\sINSERT\sstatement.\s(CVS\s3736) -D 2007-03-28T18:04:10 +C Patch\sso\sthe\sthe\scode\scompiles\swith\s-DSQLITE_OMIT_CHECK=1.\s(CVS\s3737) +D 2007-03-29T00:08:25 F Makefile.in 1fe3d0b46e40fd684e1e61f8e8056cefed16de9f F Makefile.linux-gcc 2d8574d1ba75f129aba2019f0b959db380a90935 F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028 @@ -70,7 +70,7 @@ F src/expr.c a8740c24af3f39f2d502be1a1c640c96435eaac0 F src/func.c 94372fe3cf26b81d4dcdc15f98ff240c37c8c708 F src/hash.c 449f3d6620193aa557f5d86cbc5cc6b87702b185 F src/hash.h 1b3f7e2609141fd571f62199fc38687d262e9564 -F src/insert.c 4233b6444cb154ad3d75d5a3ff0a42ae4eabad8a +F src/insert.c 80b1cc840c769b283475ae4a7b4771ba1f7659a2 F src/legacy.c 2631df6a861f830d6b1c0fe92b9fdd745b2c0cd6 F src/loadext.c c186ad5c9e8a0aaa73d0caf5f604d112e45e8b89 F src/main.c ed005bbc1d94670c8d9e2b93d446bd493119c44c @@ -442,7 +442,7 @@ F www/tclsqlite.tcl bb0d1357328a42b1993d78573e587c6dcbc964b9 F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0 F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513 -P 26348556d824c032851e409ac510cddb55c200bf -R db52877417d9d83d0ac7a145c2f8f5c7 +P 53fff7d1f2f829010a2641c7738538b3155da4b2 +R a8b7b84401a648f00168521d709f0ebb U drh -Z 0cd9afba5878d43d08ad6c698fc49c72 +Z 604fd965906231b9b5400c42a321a29e diff --git a/manifest.uuid b/manifest.uuid index 6cd1c0a46b..959e41a0e3 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -53fff7d1f2f829010a2641c7738538b3155da4b2 \ No newline at end of file +72cea358da4bd38af322f18f2a753171f7decaf8 \ No newline at end of file diff --git a/src/insert.c b/src/insert.c index d99a76bb36..e69f9c85cd 100644 --- a/src/insert.c +++ b/src/insert.c @@ -12,7 +12,7 @@ ** This file contains C code routines that are called by the parser ** to handle INSERT statements in SQLite. ** -** $Id: insert.c,v 1.178 2007/03/28 18:04:10 drh Exp $ +** $Id: insert.c,v 1.179 2007/03/29 00:08:25 drh Exp $ */ #include "sqliteInt.h" @@ -1464,9 +1464,11 @@ static int xferOptimization( return 0; /* pDestIdx has no corresponding index in pSrc */ } } +#ifndef SQLITE_OMIT_CHECK if( pDest->pCheck && !sqlite3ExprCompare(pSrc->pCheck, pDest->pCheck) ){ return 0; /* Tables have different CHECK constraints. Ticket #2252 */ } +#endif /* If we get this far, it means either: **