On 04/07/2016 06:12 PM, Dimitry Sibiryakov wrote: > 14.03.2016 10:13, Alex Peshkoff wrote: >> There is a least one reason why expansion is needed (I have no idea how >> can it be avoided) in yvalve. "Providers" config parameter is >> per-database configurable, i.e. to have correct list of providers yvalve >> needs to load database specific configuration which is impossible >> without filename expansion cause in databases.conf expanded filenames >> are used. > Ok, check me, please: in following code, if alias was found, you forget > about that and > feed original database name to providers. If it wasn't alias but a regular > file expansion > from current dir or environment ISC_PATH, you use expanded file name. Why? > >> if (expandDatabaseName(orgFilename, expandedFilename, &config)) >> { >> expandedFilename = orgFilename; >> }
I do not remember. That code was written not by me, I just changed it a little when moved all kinds of expansion into single function. I've tried my best to keep existing logic. Found any problems with it? ------------------------------------------------------------------------------ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel