Thanks, bytebites. Your suggestion also worked, what a magic fix hahaha.
Reassign seems to help?
SQLScript1.Script.Text:=SQLScript1.Script.Text;
The fact that this nonsense instruction is required is clearly an indication of a bug, and the issue should be reported.
Testing the demo project with Laz 1.8.4, 2.0.12 does not show the issue. Even Laz/main does not show it when it is combined with FPC 3.2.0. But in combination with FPC 3.2.2 the issue comes up, like with FPC/main. Therefore, the issue even is a regression.
Because FCL/RTL are hard to debug I did not fully dive into the issue but when TCustomSQLScript.ProcessStatement is entered at the second call the sql statement is lacking the "CREATE" keyword which has been dropped somewhere along the way. No idea whether this really is related, at least it looks suspicious.
When reporting the issue please add your demo project (or even better: rewrite the demo project as console application so that Lazarus is not needed).