You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a script, isql v2.X has a feature that tries to identify the line of an error, relative to the script, since FB error messages are relative to each command. The typical output is
-At line L, column C -> end of translated message from the server
At line SL in file <script_filename>
This is even more useful when running nested scripts, namely some scripts than in turn have INPUT commands that load other scripts.
This is an example of the current failure. The db used is irrelevant, since we need any db to query for something that doesn't exist:
F:\fb2dev\fbbuild\firebird2\temp\debug\firebird\bin>isql qi.fdb -i i1.txt
Statement failed, SQLCODE = -204
Dynamic SQL Error
-SQL error code = -204
-Table unknown
-CATS
-At line 1, column 15
At line 1 in file i5.txt
Statement failed, SQLCODE = -204
Dynamic SQL Error
-SQL error code = -204
-Table unknown
-CATS
-At line 2, column 2
At line 2 in file i1.txt <-----
In the second case, the error should be:
Statement failed, SQLCODE = -204
Dynamic SQL Error
-SQL error code = -204
-Table unknown
-CATS
-At line 2, column 2
At line 4 in file i1.txt <------
The sample scripts follow.
i1.txt is:
input
i5.txt;
select 0 from
cats;
i5.txt is:
select 0 from cats; <no newline at the end>
The text was updated successfully, but these errors were encountered:
Submitted by: Claudio Valderrama C. (robocop)
Assigned to: Claudio Valderrama C. (robocop)
When running a script, isql v2.X has a feature that tries to identify the line of an error, relative to the script, since FB error messages are relative to each command. The typical output is
-At line L, column C -> end of translated message from the server
At line SL in file <script_filename>
This is even more useful when running nested scripts, namely some scripts than in turn have INPUT commands that load other scripts.
This is an example of the current failure. The db used is irrelevant, since we need any db to query for something that doesn't exist:
F:\fb2dev\fbbuild\firebird2\temp\debug\firebird\bin>isql qi.fdb -i i1.txt
Statement failed, SQLCODE = -204
Dynamic SQL Error
-SQL error code = -204
-Table unknown
-CATS
-At line 1, column 15
At line 1 in file i5.txt
Statement failed, SQLCODE = -204
Dynamic SQL Error
-SQL error code = -204
-Table unknown
-CATS
-At line 2, column 2
At line 2 in file i1.txt <-----
In the second case, the error should be:
Statement failed, SQLCODE = -204
Dynamic SQL Error
-SQL error code = -204
-Table unknown
-CATS
-At line 2, column 2
At line 4 in file i1.txt <------
The sample scripts follow.
i1.txt is:
input
i5.txt;
select 0 from
cats;
i5.txt is:
select 0 from cats; <no newline at the end>
The text was updated successfully, but these errors were encountered: