Well, I think I can. Here's my explanation. \n (literal string) -> 0x0a (byte) is a transformation... but the process that happens beyond the interface of mysql_real_escape_string() for instance, is not actually a transformation. You give the parser Input, which remains the same through the entire process, and as you move on, the parser copies data from the Input to the output buffer. Thus, there are never transformations, but just some copying/creation of data to a separate buffer. MySQL will literally for loop through the bytes, and if it faces 0x27 ('), then it directly creates bytes 0x5c (\) and 0x27 (') into the output buffer (separate). In the end of the escaping process, the input stream is still the same (untouched).arborint wrote:I don't think you can say that \n \r \t \77 \xFF are is not transformations.
Usually none of this matters to programmers, but it's interesting to discuss though.
