SLC5A2 and Hypomagnesemia: However, the subsequent use of magnesium for the treatment of hypomagnesemia is more challenging because of the long-lasting electrolyte imbalance, side effects of oral magnesium use, and logistical problems with the use of intravenous magnesium. A meta-analysis of SGLT2 inhibitors in diabetic patients showed a reduction of magnesium urinary wasting.