RedisGraph / redisgraph-py

RedisGraph python client
https://redisgraph.io
BSD 3-Clause "New" or "Revised" License
189 stars 49 forks source link

quote_string handles empty string #47

Closed DvirDukhan closed 5 years ago

DvirDukhan commented 5 years ago

This PR fixes a bug in quote_string function. The function addressed the first character in a string (v[0]), and cause an application crash when given an empty string. This fix returns an empty quoted string, in case of an empty string.