typhon-project / typhonql

Typhon Query Language
Eclipse Public License 2.0
4 stars 1 forks source link

[BUG] Insertion of a string value containing double quotes #90

Closed meuriceloup closed 4 years ago

meuriceloup commented 4 years ago

Hi guys,

I'm trying to migrate pre-existing relational data into a new polystore. I encounter a problem with data containing double quotes.

For example, let us suppose this user review which contains a double quote: blablabla " blablabla

When I try to execute the following query by escaping the double quote, insert Review {content: "blablabla \" blablabla"}

the engine returns this error: {"timestamp":"2020-07-16T12:00:05.458+0000","status":500,"error":"Internal Server Error","message":"500 Server Error","path":"/api/update"}

I tried with 1, 3, 5, ... backslashes, and always the same error.

I sure have the same error with prepared statements.

I guess there is a problem with the way the QL engine deals with backslashes.

Thanks in advance

DavyLandman commented 4 years ago

Oops, this was actually an open TODO, our string literals couldn't handle escapes yet, I'm gonna add them now.

DavyLandman commented 4 years ago

It should now work (be sure to repull the container), please open if it doesn't.

meuriceloup commented 4 years ago

it works now! thx ;-)

just for the ones who are interested in it: