Simple INSERT and SELECT operations working with VIRTUAL columns.

FossilOrigin-Name: 7f9f90b1b885fa9905b296f2e0fcc9b2341019b42fc839722a93cf60e49a9252
diff --git a/src/expr.c b/src/expr.c
index fea7b0a..e02e146 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -3398,7 +3398,7 @@
     }else if( pTab->aCol[iCol].colFlags & COLFLAG_VIRTUAL ){
       int savedSelfTab = pParse->iSelfTab;
       pParse->iSelfTab = iTabCur+1;
-      sqlite3ExprCode(pParse, pTab->aCol[iCol].pDflt, iCol);
+      sqlite3ExprCode(pParse, pTab->aCol[iCol].pDflt, regOut);
       pParse->iSelfTab = savedSelfTab;
       return;
 #endif