diff options
Diffstat (limited to 'src/backend/tcop/utility.c')
-rw-r--r-- | src/backend/tcop/utility.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index 598fe952c40..7d9e11ba5bd 100644 --- a/src/backend/tcop/utility.c +++ b/src/backend/tcop/utility.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.51 1998/12/18 09:10:36 vadim Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.52 1999/01/17 06:18:44 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -620,7 +620,11 @@ ProcessUtility(Node *parsetree, filename = stmt->filename; closeAllVfds(); +#ifndef __CYGWIN32__ if ((fp = AllocateFile(filename, "r")) == NULL) +#else + if ((fp = AllocateFile(filename, "rb")) == NULL) +#endif elog(ERROR, "LOAD: could not open file '%s'", filename); FreeFile(fp); load_file(filename); |