change sql_state to attr_reader to avoid ruby warning
Merge pull request #544 from seuros/master

change sql_state to attr_reader to avoid ruby warning