mgutz / dat

Go Postgres Data Access Toolkit
Other
612 stars 62 forks source link

Panic in Exec() method #69

Closed smakogon closed 7 years ago

smakogon commented 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?