Project

General

Profile

« Previous | Next » 

Revision 12689

bugfix: lib/sh/util.sh: stderr_matches(): when passing `pattern=...` as a prefix env var, must be invoked as `"stderr_matches"` to avoid the env var applying to the prep_try portion of the stderr_matches alias

View differences:

db.sh
361 361
pg_schema_exists() # usage: schema=... pg_schema_exists
362 362
{
363 363
	echo_func; : "${schema:?}"; mk_schema_esc
364
	pattern='cannot create temporary relation in non-temporary schema' \
365
stderr_matches psql <<<"CREATE TEMP TABLE $schema_esc.t ()"
364
	prep_try; pattern='cannot create temporary relation in non-temporary schema' \
365
"stderr_matches" psql <<<"CREATE TEMP TABLE $schema_esc.t ()"
366 366
}
367 367

  
368 368
pg_require_schema() # usage: schema=... pg_require_schema

Also available in: Unified diff