@lonvia commented on this pull request.
> @@ -98,8 +98,16 @@ void init_postgis_version(pg_conn_t const &db_connection)
capabilities().database_name);
}
- capabilities().postgis = {std::stoi(std::string{res.get(0, 0)}),
- std::stoi(std::string{res.get(1, 0)})};
+ try {
+ if (res.num_tuples() >= 2) {
+ capabilities().postgis = {std::stoi(std::string{res.get(0, 0)}),
+ std::stoi(std::string{res.get(1, 0)})};
+ return;
Does this return do something?
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2379#pullrequestreview-3128548646
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/pull/2379/review/[email protected]>_______________________________________________
Tile-serving mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/tile-serving