szabgab / crystal-mine.cr

Analyzing all the source-code using the Crystal programming language
https://crystal-mine.org/
3 stars 0 forks source link

What is that "replace" in the data dump? #23

Open szabgab opened 3 years ago

szabgab commented 3 years ago

In spec/data.sql

itcharlie commented 3 years ago

Based on this stack overflow article:
https://stackoverflow.com/questions/7647936/what-does-char10-do-in-a-dynamic-t-sql-string#7647983

the replace statement below: replace('Experimenting with Crystal\n','\n',char(10))

Is just replacing the "\n" which is this ascii code representation "CHAR(13)+CHAR(10)" line feed with an ASCII code CHAR(10) representation of a new line.