Skip to content

Commit c8c7c3a

Browse files
committed
Small change to allow isql to pipe output
1 parent 6269acd commit c8c7c3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/isql/isql.epp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8520,7 +8520,8 @@ static bool stdin_redirected()
85208520
{
85218521
#ifdef WIN_NT
85228522
HANDLE in = GetStdHandle(STD_INPUT_HANDLE);
8523-
if (GetFileType(in) == FILE_TYPE_CHAR) //FILE_TYPE_DISK)
8523+
const DWORD file_type = GetFileType(in);
8524+
if (file_type == FILE_TYPE_CHAR || file_type == FILE_TYPE_PIPE)
85248525
return false;
85258526
#else
85268527
if (isatty(fileno(stdin)))

0 commit comments

Comments
 (0)