Skip to content

Commit 23a02f9

Browse files
committed
Fix reference to fixed table name planet_osm. Not sure how this one slipped
through.
1 parent 77881e7 commit 23a02f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

middle-pgsql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static struct table_desc tables [] = {
5252
// It's not optimal as it does a Nested Loop / Index Scan which is suboptimal for large arrays
5353
//"PREPARE get_node_list(int[]) AS SELECT id, lat, lon FROM %s_nodes WHERE id = ANY($1::int4[]) ORDER BY $1::int4[] # id\n",
5454
"PREPARE get_node_list(int[]) AS select y.id, y.lat, y.lon from (select i, ($1)[i] as l_id from (select generate_series(1,icount($1)) as i) x) z, "
55-
"(select * from planet_osm_nodes where id = ANY($1)) y where l_id=id order by i;\n",
55+
"(select * from %s_nodes where id = ANY($1)) y where l_id=id order by i;\n",
5656
copy: "COPY %s_nodes FROM STDIN;\n",
5757
analyze: "ANALYZE %s_nodes;\n",
5858
stop: "COMMIT;\n"

0 commit comments

Comments
 (0)