From d828fec0b1b588d432e2284624ab11e25d9c7baa Mon Sep 17 00:00:00 2001 From: Vianney Veremme <10519369+Vianpyro@users.noreply.github.com> Date: Wed, 20 Nov 2024 10:03:25 -0500 Subject: [PATCH] Fix SQL procedure to use correct column name for city ID (#10) --- procedures_get_city.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/procedures_get_city.sql b/procedures_get_city.sql index a259c7b..ab61306 100644 --- a/procedures_get_city.sql +++ b/procedures_get_city.sql @@ -15,7 +15,7 @@ CREATE OR REPLACE PROCEDURE get_city_by_id(IN p_city_id INT) BEGIN SELECT city_id, city_name, island_id, owner_id FROM city - WHERE id = p_city_id; + WHERE city_id = p_city_id; END // CREATE OR REPLACE PROCEDURE get_city_buildings(IN p_city_id INT)