- Notifications
You must be signed in to change notification settings - Fork28
Commit24a814f
committed
plpgsql's exec_simple_cast_value() mistakenly supposed that it could bypass
casting effort whenever the input value was NULL. However this preventsapplication of not-null domain constraints in the cases that use thisfunction, as illustrated in bug #4741. Since this function isn't meantfor use in performance-critical paths anyway, this certainly seems likeanother case of "premature optimization is the root of all evil".Back-patch as far as 8.2; older versions made no effort to enforcedomain constraints here anyway.1 parentbfd17f9 commit24a814f
1 file changed
+14
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
4754 | 4754 | | |
4755 | 4755 | | |
4756 | 4756 | | |
4757 | | - | |
| 4757 | + | |
4758 | 4758 | | |
4759 | | - | |
4760 | | - | |
4761 | | - | |
4762 | | - | |
4763 | | - | |
| 4759 | + | |
| 4760 | + | |
| 4761 | + | |
4764 | 4762 | | |
4765 | | - | |
| 4763 | + | |
4766 | 4764 | | |
4767 | | - | |
| 4765 | + | |
4768 | 4766 | | |
4769 | | - | |
4770 | | - | |
4771 | | - | |
4772 | | - | |
4773 | | - | |
4774 | | - | |
4775 | | - | |
4776 | | - | |
| 4767 | + | |
| 4768 | + | |
| 4769 | + | |
| 4770 | + | |
| 4771 | + | |
| 4772 | + | |
| 4773 | + | |
4777 | 4774 | | |
4778 | 4775 | | |
4779 | 4776 | | |
| |||
0 commit comments
Comments
(0)