1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-18 10:21:03 +03:00

Veryquick now row to completion without segfaulting or asserting. But there

are still lots of errors.

FossilOrigin-Name: 7fafab12e4c0c832c421975f8329c3214403d281
This commit is contained in:
drh
2012-12-07 14:02:14 +00:00
parent ae80ddea9f
commit 4b17cf5855
7 changed files with 23 additions and 23 deletions

View File

@@ -511,12 +511,17 @@ static void fkScanChildren(
** expression to the parent key column defaults. */
if( pIdx ){
Column *pCol;
Expr *pNew;
Token s;
iCol = pIdx->aiColumn[i];
pCol = &pTab->aCol[iCol];
if( pTab->iPKey==iCol ) iCol = -1;
pLeft->iTable = regData+iCol+1;
pLeft->affinity = pCol->affinity;
// fix me. pLeft->pColl = sqlite3LocateCollSeq(pParse, pCol->zColl);
s.z = pCol->zColl;
s.n = sqlite3Strlen30(s.z);
pNew = sqlite3ExprSetCollByToken(pParse, pLeft, &s);
if( pNew ) pLeft = pNew;
}else{
pLeft->iTable = regData;
pLeft->affinity = SQLITE_AFF_INTEGER;