Skip to content

Commit

Permalink
Convert source and destination references to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Jun 27, 2024
1 parent 7e8b7e1 commit 4c84147
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ Transformer::TransformPropertyGraphTable(duckdb_libpgquery::PGPropertyGraphTable
} else {
pg_table->source_reference = possible_src_alias->second;
}
std::transform(pg_table->source_reference.begin(), pg_table->source_reference.end(), pg_table->source_reference.begin(), ::tolower);

D_ASSERT(graph_table->dst_name);
auto dst_name = TransformQualifiedName(*graph_table->dst_name);
Expand All @@ -101,6 +102,7 @@ Transformer::TransformPropertyGraphTable(duckdb_libpgquery::PGPropertyGraphTable
} else {
pg_table->destination_reference = possible_dst_alias->second;
}
std::transform(pg_table->destination_reference.begin(), pg_table->destination_reference.end(), pg_table->destination_reference.begin(), ::tolower);

for (auto &src_key = graph_table->src_pk->head; src_key != nullptr; src_key = lnext(src_key)) {
auto key = reinterpret_cast<duckdb_libpgquery::PGValue *>(src_key->data.ptr_value);
Expand Down

0 comments on commit 4c84147

Please sign in to comment.