From b685f837f3dd3f2ddf3c9aaf0f9e4ca106c5fdfd Mon Sep 17 00:00:00 2001 From: "philip.cline" Date: Tue, 26 Sep 2023 11:59:14 -0400 Subject: [PATCH] refactor(JdbcTableWriter): Add GTFS route id --- src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java b/src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java index ad42fcb8c..d0e88a5f5 100644 --- a/src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java +++ b/src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java @@ -1579,7 +1579,7 @@ private void updateReferencingTables( connection.rollback(); if (entityClass.getSimpleName().equals("Stop")) { String patternStopLookup = String.format( - "select distinct p.id, r.id, r.route_short_name " + + "select distinct p.id, r.id, r.route_short_name, r.route_id " + "from %s.pattern_stops ps " + "inner join " + "%s.patterns p " + @@ -1599,7 +1599,7 @@ private void updateReferencingTables( ResultSet resultSet = patternStopSelectStatement.getResultSet(); while (resultSet.next()) { patternAndRouteIds.add( - "{" + resultSet.getString(1) + "-" + resultSet.getString(2) + "-" + resultSet.getString(3) + "}" + "{" + resultSet.getString(1) + "-" + resultSet.getString(2) + "-" + resultSet.getString(3) + "-" + resultSet.getString(3) + "}" ); } }