Project

General

Profile

« Previous | Next » 

Revision 14171

bugfix: schemas/util.sql: raise(): use new quote_as_str() to avoid "RAISE statement option cannot be null" errors

View differences:

trunk/schemas/util.sql
3741 3741
-- $__BODY1$ in case msg contains $BODY1$ (in SQL)
3742 3742
$__BODY1$
3743 3743
BEGIN
3744
	RAISE $$||$1||$$ USING MESSAGE = $$||quote_nullable($2)||$$;
3744
	RAISE $$||$1||$$ USING MESSAGE = $$||util.quote_as_str($2)||$$;
3745
		--quote_as_str() to avoid "RAISE statement option cannot be null" errors
3745 3746
END;
3746 3747
$__BODY1$
3747 3748
  LANGUAGE plpgsql IMMUTABLE

Also available in: Unified diff