From: Todd <pal...@ya...> - 2004-05-13 15:42:12
|
There is a bug in the parsing of connection strings in AttachementParams.parseConnectionString() ( AttachmentParams.cs ). The problem is if you don't specify a DataSource in your connection string, which according to the docs is valid and should default to "localhost". parseConnectionString() will call parseConnectionInfo() if the DataSource is not set, returning invalid properties for the database connection. Example: // Datasource should default to 'localhost' string cs = "Database=C:\test.fdb;Password=masterkey;User=SYSDBA"; FbConnection conn = new FbConnection(cs); conn.Open(); Results in: FirebirdSql.Data.Firebird.FbException: Unable to complete network request to host "C". at FirebirdSql.Data.Firebird.FbDbConnection.Connect() at FirebirdSql.Data.Firebird.FbConnection.Open() One solution would be to set the DataSourceSet = true if the Database connection string parameter is set, since parseConnectionInfo() is searching for this parameter also and Database is the only other required connection string option besides user and passord. Todd |