I think it's unusual for a 10 year old to suddenly become phobic of defecation. This happens to toddlers but I'd be concerned if my 10 year old had such a change in outlook.
If you hold your stool for 2 weeks it wouldn't surprise me to have days of diarrhea following that. Did you tell your pediatrician about
his need to retain his poop?
Here's an article about fecal retention that might be helpful: http://www.practicalgastro.com/pdf/November02/LoeningBauckeArticle.pdf