Skip to content

Commit cc2ac4c

Browse files
Changing query case
1 parent e8c7cfc commit cc2ac4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/routers/customer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
from app.db.database_config import database
66
from app.model.customer import Customer
77

8-
SELECT_ALL_CUSTOMERS = "select * from customers"
8+
SELECT_ALL_CUSTOMERS = "SELECT * FROM CUSTOMERS"
99
INSERT_CUSTOMER = (
10-
"INSERT INTO customers(first_name, last_name) VALUES (:first_name, :last_name)"
10+
"INSERT INTO CUSTOMERS(FIRST_NAME, LAST_NAME) VALUES (:first_name, :last_name)"
1111
)
1212

1313
router = APIRouter()

0 commit comments

Comments
 (0)