Lines Matching refs:rid
106 // add rid and new primary key to regular tables
108 $sql = preg_replace('/(PRIMARY KEY ?\([^\)]+?)(\))/', ' rid INTEGER, $1, rid $2', $sql, -1, $cnt);
109 // add rid and new primary key to lookup tables
111 $sql = str_replace(')', ', rid INTEGER, PRIMARY KEY(pid,rid) )', $sql);
134 // transfer pid to rid
232 * was always ["", <previous-pid-aka-new-rid>]. For page references it is ["<previous-pid>", 0]
257 $s = 'SELECT pid, rid, rev, ' . implode(', ', $colnames) . " FROM data_$name";
262 [$pid, $rid, $rev, $colref, $rowno, $fixes] = $this->getFixedValues($row);
268 AND rid = ?
270 $params = [$pid, $rid, $rev];
277 $s = "SELECT colref, pid, rid, rev, row, value FROM multi_$name";
282 [$pid, $rid, $rev, $colref, $rowno, $fixes] = $this->getFixedValues($row);
288 AND rid = ?
292 $params = [$pid, $rid, $rev, $colref, $rowno];
398 $rid = $row['rid'];
407 if (in_array($col, ['pid', 'rid', 'rev', 'colref', 'row'])) {
420 return [$pid, $rid, $rev, $colref, $rowno, $fixes];