Project

General

Profile

« Previous | Next » 

Revision 12690

lib/sh/util.sh: stderr_matches(): inline the stderr_matches alias to avoid needing to quote stderr_matches as "stderr_matches" in the most common use case (with pattern as a prefix env var)

View differences:

db.sh
362 362
{
363 363
	echo_func; : "${schema:?}"; mk_schema_esc
364 364
	prep_try; pattern='cannot create temporary relation in non-temporary schema' \
365
"stderr_matches" psql <<<"CREATE TEMP TABLE $schema_esc.t ()"
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