fixed SQLError object availability