You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have it in a schema not in the search path, so you have to pass the schema name, yeah, you have to specify the description. That's a bug. :-( I usually set the search path, myself, so that I don't worry about the schema arg.
There are a few functions like that, I think because, earlier in the development of pgTAP, I avoided having functions with the same number of params, because otherwise Postgres could complain that two functions matched the signature, if we also had this:
SELECT has_sequence( :schema, :sequence );
However, I later just started disambiguating by casting that second argument to NAME. But it's kind of a PITA. Anyway, that signature could be added, but it might break existing tests in the wild that pass :sequence and :description without any casts.
I use "has_sequence" to test a column with type serial.
The test fails when I omit the description part and returns ok if I add one.
It does NOT however return "If you omit the test description, it will be set to "Sequence :sequence should exist"." as the documentation says.
On PostgreSQL 9.1.3 on i486-slackware-linux-gnu, compiled by gcc (GCC) 4.7.0, 32-bit, tested with pgtap 0.93.0 and 0.94.0
The text was updated successfully, but these errors were encountered: