- /**
- * May throw a database error if, say, the server dies during query.
- * @param IDatabase $db
- * @param int $id The old_id
- * @return string
- */
- private function doGetText( $db, $id ) {
- $id = intval( $id );
- $row = $db->selectRow( 'text',
- [ 'old_text', 'old_flags' ],
- [ 'old_id' => $id ],
- __METHOD__ );
- $text = Revision::getRevisionText( $row );
- if ( $text === false ) {
- return false;