Actually it won't matter.
According to Timatic you will require a visa:
Transit passengers are required to hold a passport or passport replacing document required to enter Canada.
Passport required.
- Passports and/or passport replacing documents must be valid for the intended transit period.
Visa required.
Additional Information:
- Visitors are required to hold proof of sufficient funds to cover their stay and documents required for their next destination.
Warning:
- Visitors not holding return/onward ticket could be refused entry.
So a transit or a short stay visa for Canada will be required.