Indian markets gained for the second day in a row. Gaining nearly 1%, both benchmark indices ended at record high on Wednesday. The BSE Sensex ended at 49,792.12, up 393.83 points or 0.80%. The Nifty closed at 14,644.70, up 123.55 points or 0.85%.