File: empty-insert.feature

package info (click to toggle)
osm2pgsql 2.2.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,772 kB
  • sloc: cpp: 60,940; python: 1,115; ansic: 763; sh: 25; makefile: 14
file content (29 lines) | stat: -rw-r--r-- 752 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Feature: Tests that empty insert command does something

    Scenario:
        Given the OSM data
            """
            n1 Tnatural=water x1 y2
            """
        And the lua style
            """
            local points = osm2pgsql.define_table{
                name = 'osm2pgsql_test_points',
                ids = { type = 'node', id_column = 'node_id' },
                columns = {
                    { column = 'geom', type = 'point' },
                }
            }

            function osm2pgsql.process_node(object)
                points:insert()
            end
            """

        Then running osm2pgsql flex fails

        And the error output contains
            """
            Need two parameters
            """