Skip to content

Commit

Permalink
process more result for mysql select statement
Browse files Browse the repository at this point in the history
  • Loading branch information
seven57 committed Aug 29, 2016
1 parent 6031742 commit 605b024
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/InterfaceLibrary/CheckResult.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def mysql_select(self, sql):
if len(spstr) == 1:
if len(rows) > 1:
lists = []
for element in rows:
lists.append(rows[0][spstr[0]])
for i in range(0,len(rows)):
lists.append(rows[i][spstr[0]])
return lists
else:
print 'the value of ' + str(spstr[0]) + ' is ' + str(rows[0][spstr[0]])
Expand Down

0 comments on commit 605b024

Please sign in to comment.