Skip to content

Make string escape sequences SQL compliant - #734

Merged
mathiasrw merged 3 commits into
AlaSQL:developfrom
bopjesvla:escape
Aug 15, 2016
Merged

mathiasrw merged 3 commits into
AlaSQL:developfrom
bopjesvla:escape

Conversation

@bopjesvla

@bopjesvla bopjesvla commented Aug 15, 2016 •

Copy link
Copy Markdown
Contributor

Right now, alasql is using JavaScript's escape sequences ('\.' is turned into '.', for example). In SQL, the only characters that can be escaped are single quotes.

This PR is probably going to break stuff in some SQL dialects, but it's necessary for Postgres support.

@codecov-io

codecov-io commented Aug 15, 2016 •

Copy link
Copy Markdown

Current coverage is 66.92% (diff: 50.00%)

Merging #734 into develop will decrease coverage by 0.03%

@@            develop       #734   diff @@
==========================================
  Files             1          1          
  Lines          9721       9734    +13   
  Methods        1021       1022     +1   
  Messages          0          0          
  Branches       2897       2904     +7   
==========================================
+ Hits           6509       6514     +5   
- Misses         3212       3220     +8   
  Partials          0          0          

Powered by Codecov. Last update 02188e3...6a28c68

@mathiasrw

Copy link
Copy Markdown
Member

Thank you so much for making the quality better.

It might break something - but as long as our regression tests are still OK its fine for now.

(and if any issue come up we fix it when time comes...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants