Skip to content

Commit 5db03b4

Browse files
committed
Add build_id_path for Strings
1 parent 897eeb7 commit 5db03b4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/ruby_odata/service.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ def find_id_metadata(collection_name)
210210
def build_id_path(id_value, id_metadata)
211211
if id_metadata.type == "Edm.Int64"
212212
"(#{id_value}L)"
213+
elsif id_metadata.type == "Edm.String"
214+
"('#{id_value}')"
213215
else
214216
"(#{id_value})"
215217
end

0 commit comments

Comments
 (0)