[freetds] [ freetds-Patches-699749 ] implement :r for tsql

SourceForge.net noreply at sourceforge.net
Fri Mar 7 17:06:42 EST 2003


Patches item #699749, was opened at 2003-03-08 01:06
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=407808&aid=699749&group_id=33106

Category: application
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Craig A. Berry (berryc)
Assigned to: Nobody/Anonymous (nobody)
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.

----------------------------------------------------------------------

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