This repository was archived by the owner on Jul 12, 2020. It is now read-only.
This repository was archived by the owner on Jul 12, 2020. It is now read-only.
Raw SQL Identifier Match doesn't work with multiple spaces #105
Open
Description
When attempting to use the Raw SQL for the following query: select * from c order by c.id asc
it does not match on the c
identifier because there is a double space between the identifier and the operation (order
). It seems that Github truncates the double space, but if you edit this post you can see there is a double space.
Now this is a bit of an edge case, but I found this as I was dynamically generating my order clauses and it happened to have an extra space. Ideally spacing between keywords shouldn't matter in the library since it doesn't matter to the underlying data provider.
There are the regular expressions I am referring to:
https://github.com/Elfocrash/Cosmonaut/blob/develop/src/Cosmonaut/Extensions/CosmosSqlQueryExtensions.cs#L14