Issue Details (XML | Word | Printable)

Key: CORE-4948
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Pavel Zotov
Votes: 0
Watchers: 2

If you were logged in you would be able to see more operations.
Firebird Core

ISQL: add warning / error message when script contains several 'IN' commands without delimiter (semicolon) between them

Created: 29/Sep/15 10:20 PM   Updated: 29/Sep/15 10:20 PM
Component/s: ISQL
Affects Version/s: None
Fix Version/s: None

QA Status: No test

 Description  « Hide
1) create new database
2) create three .sql files:
`f1.sql` - with single command like: recreate table test1(id int);
`f2.sql` - with similar command but for another table: recreate table test2(id int);
`f3.sql` - similar to `f2.sql` but for table 'test3'.

3) create "main" script, let its name will be 'fm.sql', with content:
set echo on;
in f1.sql
in f2.sql
in f3.sql
show table;

or with such:
set echo on;
in f1.sql in f2.sql in f3.sql
show table;

NOTE: there is NO delimiter (semicolon) between "IN" statements.

Than run isql and look at result:

C:\FBTESTING\qa\fbt-repo\tmp>isql /3333:e30 -i fm.sql 1>log 2>err

C:\FBTESTING\qa\fbt-repo\tmp>type log
in f1.sql in f2.sql in f3.sql
recreate table test1(id int);
show table;

C:\FBTESTING\qa\fbt-repo\tmp>dir err | findstr /i /c:"err"
30.09.2015 01:13 0 err

No alerts and only one table has been created.
I'm not sure that this is a bug because "IN" command does not belong to DML/DDL set.
But ISQL should produce at least warning about scripts that were SKIPPED from execution.

(when script is typing by programmer this delimiter missing can be easy noted; but this will be difficult task when some complicated script is generated by *another* command scenario (.bat / .sh) which contains such 'small' error like mentioned above).

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.