Skip to content

Commit

Permalink
Fix SQL procedure to use correct column name for city ID (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vianpyro authored Nov 20, 2024
1 parent 054599b commit d828fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion procedures_get_city.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d828fec

Please sign in to comment.