def _get_updated_rows(self, auth, function):
<EOL>qps = []<EOL>for row in self._curs_pg:<EOL><INDENT>qps.append(<EOL>{<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT:id>',<EOL>'<STR_LIT>': row['<STR_LIT:id>']<EOL>}<EOL>)<EOL><DEDENT>if len(qps) == <NUM_LIT:0>:<EOL><INDENT>return []<EOL><DEDENT>q = qps[<NUM_LIT:0>]<EOL>for qp in qps[<NUM_LIT:1>:]:<EOL><INDENT>q = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': q,<EOL>'<STR_LIT>': qp<EOL>}<EOL><DEDENT>updated = function(auth, q, { '<STR_LIT>': <NUM_LIT> })['<STR_LIT:result>']<EOL>return updated<EOL>
Get rows updated by last update query

            * `function` [function]
                Function to use for searching (one of the search_* functions).

            Helper function used to fetch all rows which was updated by the
            latest UPDATE ... RETURNING id query.