mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 12:22:12 +00:00
translate new_item of plsql
This commit is contained in:
parent
5803be91ca
commit
a7c0d1dcbf
12
postgres/new_item.sql
Normal file
12
postgres/new_item.sql
Normal file
@ -0,0 +1,12 @@
|
||||
DROP PROCEDURE IF EXISTS new_item;
|
||||
CREATE PROCEDURE new_item(
|
||||
name item.name%TYPE,
|
||||
sell_in item.sell_in%TYPE,
|
||||
quality item.quality%TYPE
|
||||
)
|
||||
LANGUAGE plpgsql
|
||||
AS $$
|
||||
BEGIN
|
||||
INSERT INTO item (name, sell_in, quality) VALUES (name, sell_in, quality);
|
||||
END;
|
||||
$$;
|
||||
Loading…
Reference in New Issue
Block a user