Closed smakogon closed 7 years ago
I use custom exception in my db (postgresql) like this
get diagnostics n = row_count;
if n = 0 then raise exception 'banjo_operations_delete(): operation [%] does not exist', id; end if;
and this is my backend call
if _, err := rcv.db.SQL(sql, id, c.Name, c.Title).Exec(); err != nil { return err }
and this raise panic err. Can You tell me what's the problem?
I use custom exception in my db (postgresql) like this
get diagnostics n = row_count;
if n = 0 then raise exception 'banjo_operations_delete(): operation [%] does not exist', id; end if;
and this is my backend call
if _, err := rcv.db.SQL(sql, id, c.Name, c.Title).Exec(); err != nil { return err }
and this raise panic err. Can You tell me what's the problem?