Fix a bug in PostgreSQL Adapter of Query. Now we don't have problem with undefined doChanges.