Skip to content

Commit 848a7ad

Browse files
committedFeb 21, 2024
style: correct SQL query indentation
1 parent 79cf745 commit 848a7ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎examples/js/express/mysql/endpoints.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
, name
3838
, name_ru
3939
, slug
40-
FROM categories
41-
LIMIT :q.limit
40+
FROM categories
41+
LIMIT :q.limit
4242
dto:
4343
name: CategoryDto
4444
fields:

‎examples/python/fastapi/postgres/routes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def get_list_v1_categories(limit, conn=Depends(db_connection)):
7575
, name
7676
, name_ru
7777
, slug
78-
FROM categories
79-
LIMIT %(limit)s
78+
FROM categories
79+
LIMIT %(limit)s
8080
""", {"limit": limit})
8181
return cur.fetchall()
8282
finally:

0 commit comments

Comments
 (0)
Please sign in to comment.