Project

General

Profile

« Previous | Next » 

Revision 13564

fix: schemas/util.sql: try_cast(), is_castable(): also catch invalid_schema_name, thrown by `'pg_temp.__'::regclass`

View differences:

trunk/schemas/util.sql
1996 1996
	RETURN true;
1997 1997
EXCEPTION
1998 1998
WHEN   data_exception
1999
	OR invalid_schema_name -- eg. 'pg_temp.__'::regclass
1999 2000
	OR syntax_error_or_access_rule_violation -- eg. ::regclass
2000 2001
	THEN
2001 2002
	RETURN false;
......
4198 4199
	RETURN util.cast(value, ret_type_null);
4199 4200
EXCEPTION
4200 4201
WHEN   data_exception
4202
	OR invalid_schema_name -- eg. 'pg_temp.__'::regclass
4201 4203
	OR syntax_error_or_access_rule_violation -- eg. ::regclass
4202 4204
	THEN
4203 4205
	PERFORM util.raise('WARNING', SQLERRM);

Also available in: Unified diff