<p><b>@joto</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/openstreetmap/osm2pgsql/pull/1004#discussion_r352003850">src/table.cpp</a>:</p>
<pre style='color:#555'>>              }
             for (size_t i = 0; i < hstore_columns.size(); ++i) {
-                m_sql_conn->exec("CREATE INDEX ON %1% USING GIN (\"%3%\") %4%",
-                                 m_target->name, i, hstore_columns[i],
-                                 (table_space_index
-                                      ? "TABLESPACE " + table_space_index.get()
-                                      : ""));
+                m_sql_conn->exec(
+                    "CREATE INDEX ON {} USING GIN (\"{}\") {}"_format(
+                        m_target->name, i, hstore_columns[i],
</pre>
<p>With the <code>_format</code> this should have been detectable at compile time.</p>

<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/1004?email_source=notifications&email_token=AA6353VMWVMNQPO5EDAQCV3QWC6N7A5CNFSM4JRNZ45KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCNMEEJA#discussion_r352003850">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353TQLK5KB7MXFT4LSXTQWC6N7ANCNFSM4JRNZ45A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353Q4ZAJ5ZTE4E7J5XKTQWC6N7A5CNFSM4JRNZ45KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCNMEEJA.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/1004?email_source=notifications\u0026email_token=AA6353VMWVMNQPO5EDAQCV3QWC6N7A5CNFSM4JRNZ45KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCNMEEJA#discussion_r352003850",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/1004?email_source=notifications\u0026email_token=AA6353VMWVMNQPO5EDAQCV3QWC6N7A5CNFSM4JRNZ45KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCNMEEJA#discussion_r352003850",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>