Project

General

Profile

« Previous | Next » 

Revision 12865

bugfix: lib/sh/db.sh: pg_table_exists(): need ! to negate boolean result

View differences:

trunk/lib/sh/db.sh
379 379
pg_table_exists() # usage: [schema=...] table=... pg_table_exists
380 380
{
381 381
	echo_func; : "${table:?}"; mk_table_esc
382
	pattern='relation .* does not exist' \
382
	! pattern='relation .* does not exist' \
383 383
ignore_e=3 log++ stderr_matches psql <<<"SELECT NULL FROM $table_esc LIMIT 0"
384 384
}
385 385

  

Also available in: Unified diff