Subject Re: "Unknown token" error on semicolon on FB1.5.1
Author Svein Erling Tysvær
Hi, I think the WorkBench error is sensible. Why/How to select
something without putting it anywhere. Do as the message tells you and
change to 'select DisplayName from QuestionCategory into :myvariable;'


--- In, "kernramp" wrote:
> When I try to create a stored procedure:
> begin
> select DisplayName from QuestionCategory;
> end
> where both table and field exist, I get an error:
> Dynamic SQL Error
> Dynamic SQL Error
> SQL error code = -104
> Token unknown - line 3, char 25
> ;
> This happens on FB1.5.1 on Windows, through ODBC and SQL Explorer
> (Delphi 5 version). This problem also shows when connecting with
> to a Linux server version.
> In Database WorkBench, I tried to create a stored procedure through
> the interface:
> SET TERM ^^ ;
> AS
> begin
> select DisplayName from QuestionCategory;
> end
> ^^
> SET TERM ; ^^
> and I get the following error:
> "into expected but ; found". Previously, creating other stored
> procedures within the same database did work. I don't know if any of
> the metadata was damaged or anything; at the moment I'm all out of
> options and wondering if anyone has seen this error before..