pgtap icon indicating copy to clipboard operation
pgtap copied to clipboard

[Feature] throws_matching DETAIL: portion?

Open jaylevitt opened this issue 13 years ago • 3 comments

Do you have access to the DETAIL: portion of the error message? F'rinstance, I'm porting over contrib/cube's tests to pgtap, and I'd like to check for "Different point dimensions in (1,2) and (1,2,3)", not just "bad cube representation".

jaylevitt avatar Feb 13 '12 00:02 jaylevitt

Not AFAIK, because PL/pgSQL (the language in which pgTAP is written) offers only SQLSTATE, which is the error code, and and SQLERRM, which is the error message. I forgot about this; I'd actually meant to request some way to get at the details some time ago.

theory avatar Feb 13 '12 00:02 theory

Looks like the functionality has been added for 9.2.

theory avatar Feb 13 '12 17:02 theory

Re-opening so I can keep it on my radar for future improvements.

theory avatar Feb 13 '12 17:02 theory