Skip to content

Commit

Permalink
Merge pull request #408 from cuitingting01/patch-1
Browse files Browse the repository at this point in the history
Fix Fetchpcid bug
  • Loading branch information
hobu committed Aug 14, 2014
2 parents c96438d + 96143bf commit 87fe42f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/drivers/pgpointcloud/Reader.cpp
Expand Up @@ -232,6 +232,7 @@ boost::uint32_t Reader::fetchPcid() const
oss << "FROM pg_class c, pg_attribute a ";
oss << "WHERE c.relname = '" << m_table_name << "' ";
oss << "AND a.attname = '" << m_column_name << "' ";
oss << "AND c.oid = a.attrelid";

char *pcid_str(0);
pcid_str = pg_query_once(m_session, oss.str());
Expand Down

0 comments on commit 87fe42f

Please sign in to comment.