From 9f4a03151b3d9f4a907dcf47c38a8ac41bc284ad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zsombor=20Bodn=C3=A1r?= <zsombor.bodnar@kszk.bme.hu>
Date: Sat, 21 May 2022 14:20:52 +0200
Subject: [PATCH] Update comments

---
 sql/prepared_statements.sql | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sql/prepared_statements.sql b/sql/prepared_statements.sql
index b39ed51..6dbe032 100644
--- a/sql/prepared_statements.sql
+++ b/sql/prepared_statements.sql
@@ -1,4 +1,4 @@
--- check switch
+-- check_switch
 select count(*) from switch where switch_id = :switch_id;
 
 -- ip_conflict
@@ -19,8 +19,8 @@ select ip_address from port p join room r using(room_id) where p.port_id = :port
 -- clear_port
 update mueb m set port_id   = null, switch_id = null from port p where m.port_id = p.port_id and m.switch_id = p.switch_id and p.room_id = (select r.room_id from room r join port p using (room_id) where p.port_id = :port_id and p.switch_id = :switch_id);
 
--- insert_mueb
+-- insert_or_update_mueb
 insert into mueb (mac_address) values (:mac_address) on conflict (mac_address) do update set port_id = :port_id, switch_id = :switch_id where mueb.mac_address = :mac_address;
 
--- set ip conflict
+-- set_ip_conflict
 update mueb m set ip_conflict = true where m.mac_address = :mac_address;
\ No newline at end of file
-- 
GitLab