![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Steps to Reproduce: (sample code attached) 1) Create a table. 2) Create a function which inserts a row into that table. 3) Run the function once. 4) ALTER the table with a new column and SET DEFAULT for that column. 5) Run the function again. 6) Re-load the function (via REPLACE) 7) Insert one more row using the function. 8) The table will have NULL values in the first TWO rows, not the first ONE row as it should. This is because the DEFAULT value is not being "seen" by the cached plan of the function. |
![]() |
| Thread Tools | |
| Display Modes | |
| |