We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d1b440a + 215f545 commit c03ea06Copy full SHA for c03ea06
src/flex-table-column.hpp
@@ -90,11 +90,14 @@ class flex_table_column_t
90
* column? If the SRID is 4326 the geometry validity is already assured
91
* by libosmium, so we don't need it. And Point geometries are always
92
* valid.
93
+ * No checks are needed for create_only columns, because they don't
94
+ * contain anything.
95
*/
96
bool needs_isvalid() const noexcept
97
{
98
assert(is_geometry_column());
- return m_srid != 4326 && m_type != table_column_type::point;
99
+ return !m_create_only && m_srid != 4326 &&
100
+ m_type != table_column_type::point;
101
}
102
103
std::string const &type_name() const noexcept { return m_type_name; }
0 commit comments