- fixes for the ORM side test for #3531.
- fixes for the ORM side test for #3531.

epa/sqlalchemy,elelianghh/sqlalchemy,epa/sqlalchemy,ThiefMaster/sqlalchemy,Akrog/sqlalchemy,sandan/sqlalchemy,robin900/sqlalchemy,davidfraser/sqlalchemy,j5int/sqlalchemy,j5int/sqlalchemy,bdupharm/sqlalchemy,bdupharm/sqlalchemy,itkovian/sqlalchemy,robin900/sqlalchemy,wujuguang/sqlalchemy,graingert/sqlalchemy,ThiefMaster/sqlalchemy,sandan/sqlalchemy,itkovian/sqlalchemy,monetate/sqlalchemy,zzzeek/sqlalchemy,davidfraser/sqlalchemy,hsum/sqlalchemy,graingert/sqlalchemy,sqlalchemy/sqlalchemy,elelianghh/sqlalchemy,monetate/sqlalchemy,wujuguang/sqlalchemy,Akrog/sqlalchemy,hsum/sqlalchemy