Skip to content

Commit

Permalink
Espace SQL user
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Apr 22, 2024
1 parent b3a6c58 commit 7e2344f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/overpass_parser/nodes/out.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def to_sql(sql_dialect)
#{meta ? ",\n 'timestamp', created" : ''}\
#{meta ? ",\n 'version', version" : ''}\
#{meta ? ",\n 'changeset', changeset" : ''}\
#{meta ? ",\n 'user', user" : ''}\
#{meta ? ",\n 'user', \"user\"" : ''}\
#{meta ? ",\n 'uid', uid" : ''}\
#{if @geom == 'center'
",
Expand Down
2 changes: 1 addition & 1 deletion test/overpass_parser/request_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_matches_to_sql
'timestamp', created,
'version', version,
'changeset', changeset,
'user', user,
'user', \"user\",
'uid', uid,
'center', CASE osm_type = 'w' OR osm_type = 'r'
WHEN true THEN jsonb_build_object(
Expand Down
2 changes: 1 addition & 1 deletion test/overpass_parser/visitor_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def test_to_sql
'timestamp', created,
'version', version,
'changeset', changeset,
'user', user,
'user', \"user\",
'uid', uid,
'center', CASE osm_type = 'w' OR osm_type = 'r'
WHEN true THEN jsonb_build_object(
Expand Down

0 comments on commit 7e2344f

Please sign in to comment.