This commit is contained in:
Dane Springmeyer 2015-10-09 15:27:34 -07:00
parent dc80d9f582
commit 5e8a009278

View file

@ -128,6 +128,10 @@ feature_ptr postgis_featureset::next()
totalGeomSize_ += size; totalGeomSize_ += size;
unsigned num_attrs = ctx_->size() + 1; unsigned num_attrs = ctx_->size() + 1;
if (!key_field_as_attribute_)
{
num_attrs++;
}
for (; pos < num_attrs; ++pos) for (; pos < num_attrs; ++pos)
{ {
std::string name = rs_->getFieldName(pos); std::string name = rs_->getFieldName(pos);