Connection::query() was not properly checking whether it needs to refresh its schema.
test_schema_reprepare_write