The purpose of this study is to evaluate the efficacy and safety of 2 different doses of canagliflozin compared with placebo in patients with type 2 diabetes mellitus who are receving treatment with metformin and pioglitazone and have inadequate glycemic (blood sugar) control.