--- src/bin/psql/mainloop.c Sun Apr 1 23:17:32 2001 +++ src/bin/psql/mainloop.c Thu Apr 26 05:51:46 2001 @@ -53,7 +53,7 @@ const char *var; volatile unsigned int bslash_count = 0; - int i, + int i,j, prevlen, thislen; @@ -91,7 +91,7 @@ /* main loop to get queries and execute them */ - while (1) + for(j = 0;;j++) { #ifndef WIN32 @@ -189,6 +189,11 @@ line = gets_fromFile(source); } + if (!j && line && line[0] == '#' && line[1] == '!') + { + free(line); + continue; + } /* Setting this will not have effect until next line. */ die_on_error = GetVariableBool(pset.vars, "ON_ERROR_STOP");