The issue #231 is fixed

The testQueryCount fails for postgresql
Merge pull request #232 from olegabr/bug-231

The issue #231 is fixed