No you won't. We have what are called courts here, I'm sure you've heard of them, and they examine the case and if you are determined to be mentally ill and therefore not criminally responsible you will be sent to a rehab facility, not a jail. Check around, you have similar situations in the US, and maybe stop trolling all things Canada for once.