<p>Move the code creating the pgsql function and trigger checking the<br>
geometry validity into its own function. This function can create<br>
the pgsql function in the correct schema if one is specified.</p>
<p>The flex output already has schema support, so it uses this function now<br>
to create the function in the right schema. The pgsql output doesn't<br>
have schema support yet, so it doesn't.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/osm2pgsql/pull/1286'>https://github.com/openstreetmap/osm2pgsql/pull/1286</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Consolidate pgsql function and trigger creation in a function</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/1286/files#diff-95e351a3805a1dafa85bf20b81d086e6">src/CMakeLists.txt</a>
(1)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/1286/files#diff-201c88ab08659de3ce943d5c6c0cb5a9">src/flex-table.cpp</a>
(22)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/1286/files#diff-611d6d08aa2dceb91b651524e5c68fc1">src/pgsql-helper.cpp</a>
(30)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/1286/files#diff-f128fab00b3eed9236d2bc3c1c39645f">src/pgsql-helper.hpp</a>
(11)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/1286/files#diff-4eaa4d157c8b98372ad84ef48547fa71">src/table.cpp</a>
(20)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/1286/files#diff-3dea97423f83302e647a3bab62bf1157">tests/CMakeLists.txt</a>
(1)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/1286/files#diff-c8b2e88849d8a78428789e3084c5c970">tests/data/test_output_flex_schema.lua</a>
(24)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/1286/files#diff-1f93fe40701d93f8dfcb20bf2a72361c">tests/test-output-flex-schema.cpp</a>
(33)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/osm2pgsql/pull/1286.patch'>https://github.com/openstreetmap/osm2pgsql/pull/1286.patch</a></li>
<li><a href='https://github.com/openstreetmap/osm2pgsql/pull/1286.diff'>https://github.com/openstreetmap/osm2pgsql/pull/1286.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/pull/1286">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353WJPMQUVLE4NBVNKNDSJXL7TANCNFSM4SI5LJ6A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353RIQQVAWZRKIGFRALTSJXL7TA5CNFSM4SI5LJ6KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4KWDPMYQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/pull/1286",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/1286",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>