/ Check-in [772985f18b]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:The Expr.iColumn field must also be initialized in tokenExpr().
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | alter-table-rename-column
Files: files | file ages | folders
SHA3-256: 772985f18b2ab8fa04a0c29593fc6d9b74c1361260cb59e566606dd56f326535
User & Date: drh 2018-08-23 18:50:19
Context
2018-08-23
19:32
Fix harmless compiler warnings in the ALTER TABLE logic. Rephrase an error message to use active voice. check-in: a7dae59a7e user: drh tags: alter-table-rename-column
18:50
The Expr.iColumn field must also be initialized in tokenExpr(). check-in: 772985f18b user: drh tags: alter-table-rename-column
18:22
Make sure the Expr.iTable field is initialized by tokenExpr(). check-in: 02a05a3b3c user: drh tags: alter-table-rename-column
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/parse.y.

   936    936         p->iAgg = -1;
   937    937         p->pLeft = p->pRight = 0;
   938    938         p->x.pList = 0;
   939    939         p->pAggInfo = 0;
   940    940         p->pTab = 0;
   941    941         p->op2 = 0;
   942    942         p->iTable = 0;
          943  +      p->iColumn = 0;
   943    944   #ifndef SQLITE_OMIT_WINDOWFUNC
   944    945         p->pWin = 0;
   945    946   #endif
   946    947         p->u.zToken = (char*)&p[1];
   947    948         memcpy(p->u.zToken, t.z, t.n);
   948    949         p->u.zToken[t.n] = 0;
   949    950         if( sqlite3Isquote(p->u.zToken[0]) ){