If oldname is used, it is even worse because then you will not have the column anymore when you try to access it in this code....