/ Open the file corresponding to one column. */ /
| 2009 | /* Open the file corresponding to one column. */ |
| 2010 | /***********************************************************************/ |
| 2011 | bool VECFAM::OpenColumnFile(PGLOBAL g, PCSZ opmode, int i) |
| 2012 | { |
| 2013 | char filename[_MAX_PATH]; |
| 2014 | PDBUSER dup = PlgGetUser(g); |
| 2015 | |
| 2016 | snprintf(filename, _MAX_PATH, Colfn, i+1); |
| 2017 | |
| 2018 | if (!(Streams[i] = PlugOpenFile(g, filename, opmode))) { |
| 2019 | if (trace(1)) |
| 2020 | htrc("%s\n", g->Message); |
| 2021 | |
| 2022 | return (Tdbp->GetMode() == MODE_READ && errno == ENOENT) |
| 2023 | ? PushWarning(g, Tdbp) : true; |
| 2024 | } // endif Streams |
| 2025 | |
| 2026 | if (trace(1)) |
| 2027 | htrc("File %s is open in mode %s\n", filename, opmode); |
| 2028 | |
| 2029 | To_Fbs[i] = dup->Openlist; // Keep track of File blocks |
| 2030 | return false; |
| 2031 | } // end of OpenColumnFile |
| 2032 | |
| 2033 | /***********************************************************************/ |
| 2034 | /* Allocate the block buffers for columns used in the query. */ |
nothing calls this directly
no test coverage detected