aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-09-16 18:02:47 +0000
committerdrh <drh@noemail.net>2008-09-16 18:02:47 +0000
commitf44ed02790b153cd7069b20460408ca7ec11c892 (patch)
tree26fc8abb5877fef59e7b47ce1ea467fb99208122 /src/expr.c
parent05edfb62d912163754791af3411a6e8fc4d55bd9 (diff)
downloadsqlite-f44ed02790b153cd7069b20460408ca7ec11c892.tar.gz
sqlite-f44ed02790b153cd7069b20460408ca7ec11c892.zip
Add test cases for ticket #3378 and #3381. Add a temporary hack to get those
to problems fixed. The hack causes failures in alias.test, but those are much less serious than the aforementioned tickets. This is a stop-gap until we can figure out a proper fix. (CVS 5711) FossilOrigin-Name: a67da9dd2ff6acc163de4ce2b836b03e3f159a88
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/expr.c b/src/expr.c
index 8f2d13f7e..3d742cd9c 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -12,7 +12,7 @@
** This file contains routines used for analyzing expressions and
** for generating VDBE code that evaluates expressions in SQLite.
**
-** $Id: expr.c,v 1.392 2008/08/29 02:14:03 drh Exp $
+** $Id: expr.c,v 1.393 2008/09/16 18:02:47 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -2464,11 +2464,14 @@ int sqlite3ExprCodeExprList(
assert( target>0 );
n = pList->nExpr;
for(pItem=pList->a, i=0; i<n; i++, pItem++){
+#if 0 /* Remove temporarily for tickets #3378 and #3381 */
if( pItem->iAlias ){
int iReg = codeAlias(pParse, pItem->iAlias, pItem->pExpr);
Vdbe *v = sqlite3GetVdbe(pParse);
sqlite3VdbeAddOp2(v, OP_SCopy, iReg, target+i);
- }else{
+ }else
+#endif
+ {
sqlite3ExprCode(pParse, pItem->pExpr, target+i);
}
if( doHardCopy ) sqlite3ExprHardCopy(pParse, target, n);