A majority of Maryland voters support upholding the same-sex marriage law, which will go to a ballot vote in November, according to a recent survey to be released Thursday.

Fifty-four percent of voters support the measure, which Gov. Martin O'Malley signed into law this year, while 40 percent oppose it, the findings show.

The poll was conducted by the Hart Research Associates, which is typically commissioned by Democrats. The New York Times, given an early look at the poll before it was released, first reported the results.

Previous surveys have found closer results: A Gonzales Research poll from January found 48 percent of voters in support of the law and 47 percent against it, while a Washington Post poll, also from January, put support at 50 percent and opposition at 47 percent.