def GetFirstPrimaryKeyValue(self, optional_where='1'):
    attrs = self._attrs.copy()
    attrs['select'] = self._PrimaryKeyForSelect()
    attrs['optional_where'] = optional_where
    sql = ('SELECT %(select)s '
           'FROM %(db)s.%(table)s FORCE INDEX (PRIMARY) '
           'WHERE %(optional_where)s LIMIT 1')
    res = self._dbh.ExecuteOrDie(sql % attrs)
    if res:
      return res[0]
Runs all commands that travis tests.
dataset/ETHPy150Open google/mysql-tools/pylib/range_lib.py/PrimaryKeyRange.GetFirstPrimaryKeyValue--crossover with--dataset/ETHPy150Open OpenSlides/OpenSlides/make/commands.py/travis