skip to Main Content

Postgresql – plpgsql does not handle exception

i have a table called stock_holdings which does not have data related to account_id and ticker_cd (actually it is empty): select qty,total_amount from stock_holdings where account_id=1 and ticker_cd='XYZ'; qty | total_amount -----+-------------- (0 rows) however when i run the following…

VIEW QUESTION

Cannot query Enum with Spring JPA and Postgresql

So i have this ENUM in my PostgreSQL: CREATE TYPE process_status AS ENUM('CREATED','ONGOING','DONE'); ALTER TABLE process ADD status process_status NOT NULL DEFAULT 'CREATED'; In my code: @Getter public enum Status { CREATED("Created"), ONGOING("Ongoing"), DONE("Done"); private final String status; Status(String status)…

VIEW QUESTION
Back To Top
Search