function ValidatePPText(var pmsg: lzString): integer;
This function is used internally to check is beautified sql is the same as original.