Project

General

Profile

« Previous | Next » 

Revision 14240

bugfix: derived_col_constraint_initially_enabled(): use whether existing constraint is already enabled, not whether expr is unchanged (which does not affect the enabled status)

View differences:

trunk/schemas/util.sql
1845 1845
    LANGUAGE sql STABLE
1846 1846
    AS $$
1847 1847
SELECT
1848
	def.expr IS NOT DISTINCT FROM util.derived_col_expr(def.col) -- unchanged
1848
	util.check_constraint_enabled(def.col::util.table_item) -- already enabled
1849 1849
OR	NOT util.table_has_data((def).col.table_) -- empty, so would always pass
1850 1850
$$;
1851 1851

  

Also available in: Unified diff