<p></p>
<p>The error message in output_flex_t::table_add_row is a bit unclear to a Lua user:<br>
<em>Error in 'add_row': Need two parameters: The osm2pgsql.table and the row data</em></p>
<p>The osm2pgsql.table parameter is an internal artifact and pretty much invisible to a user. The expected way to fix the error is to provide a single  "row data" parameter only. The error message should reflect this somehow.</p>
<pre><code>tables.point:add_row()
</code></pre>

<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/issues/1171">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353X7OCEZDOLO7EOYLS3RR6HWXANCNFSM4NDINMXQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353RSMG52LNIZGMPNFILRR6HWXA5CNFSM4NDINMX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4JHO3QSA.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/issues/1171",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/1171",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>