We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82e09c9 commit 94fbb1cCopy full SHA for 94fbb1c
tests/test_base_sql/test_misc_sql_queries.py
@@ -78,11 +78,11 @@ def test_autocommit(self):
78
assert str(ast) == str(expected_ast)
79
80
def test_table_with_order_by_limit_offset(self):
81
- sql = "TABLE my_table ORDER BY id LIMIT 10 OFFSET 5"
+ sql = "TABLE my_table ORDER BY my_column LIMIT 10 OFFSET 5"
82
ast = parse_sql(sql)
83
assert isinstance(ast, Table)
84
assert ast.name.to_string() == 'my_table'
85
- assert ast.order_by[0].field.to_string() == 'id'
+ assert ast.order_by[0].field.to_string() == 'my_column'
86
assert ast.limit.value == 10
87
assert ast.offset.value == 5
88
0 commit comments