On 16/10/2015 10:07, Dimitry Sibiryakov wrote: > 16.10.2015 15:01, Ivan Přenosil wrote: >> There are actually two separators/terminators - one to be used in scripts >> to separate commands, one to be used inside PSQL commands. >> The whole problem is caused by the fact that somebody chose >> the same character for both. >> So the solution by Adriano is the simplest and the only right (imho). > Problem with changing of the terminator and returning it back can be made > easier if SET > TERM command had had only local effect to current (and nested) input streams. > Well, but do to a SET TERM (in the script start), one need to known the previous character, so it can revert in the script end.
A bad written script will make the caller fail. And the caller must known the callee expectation of the initial terminator. It's not a callee script implementation detail. Adriano ------------------------------------------------------------------------------ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel