[freetds] [ freetds-Patches-699749 ] implement :r for tsql
SourceForge.net
noreply at sourceforge.net
Wed Mar 26 22:25:32 EST 2003
Patches item #699749, was opened at 2003-03-07 20:06
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=407808&aid=699749&group_id=33106
Category: application
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Craig A. Berry (berryc)
>Assigned to: James K. Lowden (jklowden)
Summary: implement :r for tsql
Initial Comment:
It is convenient when testing queries to be able to suck in external files. Toward that end the patch here implements the :r option for tsql in accordance with the Sybase isql documentation. Basically, you'd do something like this to avoid retyping the contents of myquery.sql whenever you want to run it:
> :r myquery.sql
> go
In principle the -i command-line switch could be implemented using the same infrastructure as :r, but it might make more sense to just do freopen on stdin.
----------------------------------------------------------------------
>Comment By: James K. Lowden (jklowden)
Date: 2003-03-27 01:25
Message:
Logged In: YES
user_id=350488
Thanks for the patch, Craig. I decided you're right: even
if tsql is intended to be a simple diagnostic tool (and not
replacement for isql), the ability to read in a file is handy.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=407808&aid=699749&group_id=33106
More information about the FreeTDS
mailing list