Update session.go

fix stmt query of 'Get function' bug when an error occurred
Merge pull request #151 from starchou/master

Update session.go