def _ShowTable(result):
  if result is None:
    return
  if result:
    for row in result.GetTable(FLAGS.print_field_names):
      print _Encode(row)
  rowcount = result.GetRowsAffected()
  # Heuristic for whether this is useful information.
  if rowcount is not None and rowcount != len(result):
    print '%d row(s) affected' % rowcount
dataset/ETHPy150Open google/mysql-tools/sql.py/_ShowTable/original