Skip to content

Commit 94fbb1c

Browse files
committed
fix
1 parent 82e09c9 commit 94fbb1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_base_sql/test_misc_sql_queries.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ def test_autocommit(self):
7878
assert str(ast) == str(expected_ast)
7979

8080
def test_table_with_order_by_limit_offset(self):
81-
sql = "TABLE my_table ORDER BY id LIMIT 10 OFFSET 5"
81+
sql = "TABLE my_table ORDER BY my_column LIMIT 10 OFFSET 5"
8282
ast = parse_sql(sql)
8383
assert isinstance(ast, Table)
8484
assert ast.name.to_string() == 'my_table'
85-
assert ast.order_by[0].field.to_string() == 'id'
85+
assert ast.order_by[0].field.to_string() == 'my_column'
8686
assert ast.limit.value == 10
8787
assert ast.offset.value == 5
8888

0 commit comments

Comments
 (0)