39 |
|
|
40 |
|
BlobLineLength = 40; |
41 |
|
|
42 |
+ |
DefaultTerminator = ';'; |
43 |
+ |
|
44 |
|
{Non-character symbols} |
45 |
|
sqNone = #0; |
46 |
|
sqEnd = #1; |
734 |
|
begin |
735 |
|
with GetTransaction do |
736 |
|
if InTransaction then Rollback; |
737 |
+ |
FSymbolStream.Terminator := DefaultTerminator; |
738 |
|
if assigned(OnErrorLog) then |
739 |
|
begin |
740 |
|
Add2Log(Format(sStatementError,[FSymbolStream.GetErrorPrefix, |
1909 |
|
#0..#8,#10..#31,' ': |
1910 |
|
Result := ' '; |
1911 |
|
|
1912 |
< |
#9,';','"','''','/', |
1912 |
> |
#9,';','"','''','/','-', |
1913 |
|
'*','=','>','<',',': |
1914 |
|
Result := C; |
1915 |
|
else |
1936 |
|
constructor TSymbolStream.Create; |
1937 |
|
begin |
1938 |
|
inherited; |
1939 |
< |
FTerminator := ';'; |
1939 |
> |
FTerminator := DefaultTerminator; |
1940 |
|
NextStatement; |
1941 |
|
end; |
1942 |
|
|
2026 |
|
Result := sqCommentLine; |
2027 |
|
FIndex := 0; |
2028 |
|
FNextSymbol := sqNone |
2029 |
+ |
end; |
2030 |
+ |
|
2031 |
+ |
'-': |
2032 |
+ |
if FXMLMode > 0 then |
2033 |
+ |
break |
2034 |
+ |
else |
2035 |
+ |
if FNextSymbol = '-' then |
2036 |
+ |
begin |
2037 |
+ |
FString := '--' + system.copy(FLine,FIndex,length(FLine)- FIndex + 1) ; |
2038 |
+ |
Result := sqCommentLine; |
2039 |
+ |
FIndex := 0; |
2040 |
+ |
FNextSymbol := sqNone |
2041 |
|
end; |
2042 |
|
|
2043 |
|
'<': |