[COMMITTERS] pgsql: Fix interval_transform so it doesn't throw away non-no-op casts.

2016-12-27 Thread Tom Lane
Fix interval_transform so it doesn't throw away non-no-op casts. interval_transform() contained two separate bugs that caused it to sometimes mistakenly decide that a cast from interval to restricted interval is a no-op and throw it away. First, it was wrong to rely on dt.h's field type macros to

[COMMITTERS] pgsql: Fix interval_transform so it doesn't throw away non-no-op casts.

2016-12-27 Thread Tom Lane
Fix interval_transform so it doesn't throw away non-no-op casts. interval_transform() contained two separate bugs that caused it to sometimes mistakenly decide that a cast from interval to restricted interval is a no-op and throw it away. First, it was wrong to rely on dt.h's field type macros to

[COMMITTERS] pgsql: Fix interval_transform so it doesn't throw away non-no-op casts.

2016-12-27 Thread Tom Lane
Fix interval_transform so it doesn't throw away non-no-op casts. interval_transform() contained two separate bugs that caused it to sometimes mistakenly decide that a cast from interval to restricted interval is a no-op and throw it away. First, it was wrong to rely on dt.h's field type macros to

[COMMITTERS] pgsql: Fix interval_transform so it doesn't throw away non-no-op casts.

2016-12-27 Thread Tom Lane
Fix interval_transform so it doesn't throw away non-no-op casts. interval_transform() contained two separate bugs that caused it to sometimes mistakenly decide that a cast from interval to restricted interval is a no-op and throw it away. First, it was wrong to rely on dt.h's field type macros to

[COMMITTERS] pgsql: Fix interval_transform so it doesn't throw away non-no-op casts.

2016-12-27 Thread Tom Lane
Fix interval_transform so it doesn't throw away non-no-op casts. interval_transform() contained two separate bugs that caused it to sometimes mistakenly decide that a cast from interval to restricted interval is a no-op and throw it away. First, it was wrong to rely on dt.h's field type macros to

[COMMITTERS] pgsql: Fix interval_transform so it doesn't throw away non-no-op casts.

2016-12-27 Thread Tom Lane
Fix interval_transform so it doesn't throw away non-no-op casts. interval_transform() contained two separate bugs that caused it to sometimes mistakenly decide that a cast from interval to restricted interval is a no-op and throw it away. First, it was wrong to rely on dt.h's field type macros to