[Tile-serving] [osm2pgsql-dev/osm2pgsql] Fix problem when detecting PostGIS version (PR #2379)
Sarah Hoffmann
notifications at github.com
Mon Aug 18 14:07:57 UTC 2025
@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/3128548646 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20250818/b15b60d3/attachment-0001.htm>
More information about the Tile-serving
mailing list