Issue Details (XML | Word | Printable)

Key: CORE-3063
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Ain Valtin
Votes: 0
Watchers: 1
Operations

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

Unnsessesary message when executing script

Created: 01/Jul/10 04:13 PM   Updated: 01/Jul/10 10:14 PM
Component/s: ISQL
Affects Version/s: 2.5 RC1
Fix Version/s: None

Environment: ISQL Version: WI-V2.5.0.25784 Firebird 2.5 Release Candidate 1


 Description  « Hide
When running SQL script via command line like this:

isql.exe -input Test.sql

where test.sql file contains single line

CREATE DATABASE 'test.fdb' USER 'x' PASSWORD 'x' DEFAULT CHARACTER SET UTF8;

following message is printed

Use CONNECT or CREATE DATABASE to specify a database

Database is created OK.
It seems that this message is always printed when ISQL is executed while it makes sense only when interactive session is started.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Vlad Khorsun added a comment - 01/Jul/10 05:20 PM
Use switch -quiet

Ain Valtin added a comment - 01/Jul/10 10:14 PM
How quiet is quiet (InterBase 6 Operations Guide lists the parameter but doesn't have any comments about it's effect)? I wouldn't want to miss any error messages...
But the point really is that the message is quite pointless, even irritating... anyone who uses command line tools should be able to find information how to use the tool. What if I started the interactive session to load/execute some script?
If you (FB developers) feel that this helps to reduce support questions then I would suggest that the message at the start of the interactive session should be something like "Type ? to gel list of available commands" and the list should include the CONNECT and CREATE DATABASE commands (which it currently does not).