Skip to content

Commit

Permalink
[view] Order views by name
Browse files Browse the repository at this point in the history
  • Loading branch information
sixela committed Sep 10, 2015
1 parent 598e8a4 commit 0b9895e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions schemaobject/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ def ViewSchemaBuilder(database):
v = OrderedDict()

sql = """
SELECT TABLE_NAME
FROM information_schema.views
WHERE TABLE_SCHEMA = '%s'
ORDER BY TABLE_NAME
SELECT TABLE_NAME
FROM information_schema.views
WHERE TABLE_SCHEMA = '%s'
ORDER BY TABLE_NAME
"""

views = conn.execute(sql % database.name)
Expand Down

0 comments on commit 0b9895e

Please sign in to comment.