From Matthew Artz again, here was the post-result spin from various participants and onlookers:

"I'm grateful for the voters and volunteers who believed in my message of problem solving and standing up to powerful special interests," Glazer said after initial returns from mail-in ballots showed him with a strong lead. ... "This is a repudiation of union politics," Republican strategist Richard Temple said. "To have a Democrat who wins over the will of public employee unions, that is a significant outcome." Bonilla campaign adviser Josh Pulliam chalked up the defeat to Glazer's attacks against Bonilla and the fact that special elections typically produce more conservative electorates. "Their entire campaign was based on demonizing Susan, so voters stayed home on Election Day and they were pretty successful in doing that," he said.

Finally, here's the Associated Press writeup on Tuesday's vote:

MARTINEZ -- Orinda Mayor Steve Glazer defeated fellow Democrat Susan Bonilla in a special election for a state Senate seat representing the east San Francisco Bay Area.

With all precincts reporting Tuesday night and about 110,000 votes counted in the district that includes parts of Contra Costa and Alameda counties, Glazer had 54.6 percent to 45.4 for Bonilla.

"Our campaign struck a chord with voters frustrated by the gridlock and dysfunction in Sacramento," Glazer said in a statement after the vote. "They want leaders who are more pragmatic than partisan." He promised to be an "independent thinker" in the Legislature.

The race between Glazer, a longtime adviser to Gov. Jerry Brown, and Bonilla, an assemblywoman from Concord, drew lots of attention and money — $7 million. Much of the spending came from outside groups that set up their own committees to fund attack mailers and TV commercials on both sides.

The candidates positioned themselves as moderate Democrats in the mold of Brown, who did not endorse either.

Bonilla had the backing of the California Democratic Party and labor unions. They were upset that Glazer worked for a Chamber of Commerce-funded committee in 2012 that sought to unseat incumbent Democrats in the Legislature and replace them with Democrats considered friendlier to business interests.

Democrats have nearly 44 percent of the registered voters in the 7th Senate District. Glazer sought to attract Republicans and independents.

Bonilla campaign spokesman Josh Pulliam said those voters were the key to Glazer's success Tuesday.

"Glazer and his supporters had a singular purpose, which was to bury the Democratic voters in as much negative mail as possible, and to prop up Glazer to the Republican voters, and they were successful," Pulliam said.

Glazer will replace Mark DeSaulnier, who was elected to Congress, and will have to run again next year when the seat comes up for re-election.