This is a question for your doctor. Yes, hydrochlorothiazide can raise blood sugar. And it can deplete your body of potassium because it's a diuretic. When taking this drug, you and your doctor need to discuss how to handle these side effects.
http://www.webmd.com/drugs/drug-5310-Hydrochlorothiazide+Oral.aspx?drugid=5310&drugname=Hydrochlorothiazide+Oral