fix adapter error when use db session
fix adapter error when use db session

akira-cn/thinkjs,Qihoo360/thinkjs,snadn/thinkjs,maxzhang/thinkjs,akira-cn/thinkjs,75team/thinkjs,75team/thinkjs,maxzhang/thinkjs,75team/thinkjs,thinkjs/thinkjs,maxzhang/thinkjs,akira-cn/thinkjs