In this randomized , double-blind study , patients ( N = @,@ ) received canagliflozin @ or @ mg or glimepiride ( titrated up to @ or @ mg/day ) during a @-week core period followed by a @-week extension .