Issue Details (XML | Word | Printable)

Key: CORE-1643
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Alexander Peshkov
Reporter: Igor Lobov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Use DatabaseAccess configuration parameter for default database location

Created: 10/Dec/07 11:07 AM   Updated: 16/Mar/10 10:38 AM
Component/s: Engine
Affects Version/s: None
Fix Version/s: 2.5 RC1

Time Tracking:
Not Specified


 Description  « Hide
Add configuration parameter for default databases location.
This parameter could defines location of databases without path and without record at aliases.conf

 All   Comments   Work Log   Change History   Version Control   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Smirnoff Serg added a comment - 11/Dec/07 03:11 AM - edited
Parameter is exist, "DatabaseAccess".
I think that database without path should be treated first as alias, than seek on DatabaseAccess path list, and at last at current dir.
Maybe current dir is excess.

Alexander Peshkov added a comment - 11/Dec/07 03:27 AM
Yes, something like this - use DatabaseAccess to locate a database w/o path. Have a look how external tables work now.

But use of current directory to locate database should not be supressed by new feature - legacy applications must work.

Dmitry Yemanov added a comment - 11/Dec/07 04:10 AM
I think only local connections intentionally use filenames w/o path and the path resolution is handled by the Y-valve in this case, so it will have the precedence automatically. As for the standalone server working via the remote subsystem, filenames w/o path are unlikely to be used. On Windows this means %system% as a working directory :-)

Alexander Peshkov added a comment - 22/Sep/09 12:32 AM
Same logic that was used for external tables is applied to databases.
1. Database file is searched for in all directories, present in restrict list.
2. If not found - first one is used as default directory. This let's create database succeed, attach certainyl fails (like expected).