Return the next EXPLAIN QUERY PLAN line with iEqpId that occurs after ** pOld, or return the first such line if pOld is NULL */
| 17319 | ** pOld, or return the first such line if pOld is NULL |
| 17320 | */ |
| 17321 | static EQPGraphRow *eqp_next_row(ShellState *p, int iEqpId, EQPGraphRow *pOld){ |
| 17322 | EQPGraphRow *pRow = pOld ? pOld->pNext : p->sGraph.pRow; |
| 17323 | while( pRow && pRow->iParentId!=iEqpId ) pRow = pRow->pNext; |
| 17324 | return pRow; |
| 17325 | } |
| 17326 | |
| 17327 | /* Render a single level of the graph that has iEqpId as its parent. Called |
| 17328 | ** recursively to render sublevels. |