Skip to content

Commit f5ab16e

Browse files
committed
10.0.3
Fixed major remote connection bug in 10.0.2 This impacted CreateDatabase, DropDatabase and Connect in both normal and async mode. Also fixed async remote service connections. Added services attaching using an instance name (ConnectionString.Instance)
1 parent 7d33c57 commit f5ab16e

33 files changed

+522
-38
lines changed

NETProvider/Demos/ChangeViews Demo/ChangeViews Demo.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</Reference>
1313
</ItemGroup>
1414
<ItemGroup>
15-
<PackageReference Include="InterBaseSql.Data.InterBaseClient" Version="10.0.2" />
15+
<PackageReference Include="InterBaseSql.Data.InterBaseClient" Version="10.0.3" />
1616
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
1717
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
1818
</ItemGroup>

NETProvider/Demos/ChangeViews Demo/Properties/AssemblyInfo.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[assembly: AssemblyConfiguration("")]
1111
[assembly: AssemblyCompany("")]
1212
[assembly: AssemblyProduct("ChangeViews Demo")]
13-
[assembly: AssemblyCopyright("Copyright © 2021")]
13+
[assembly: AssemblyCopyright("Copyright © 2025")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
1616

NETProvider/Demos/ConnectionBuilder/ConnectionBuilder/ConnectionBuilder.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
88
</PropertyGroup>
99
<ItemGroup>
10-
<PackageReference Include="InterBaseSql.Data.InterBaseClient" Version="10.0.2" />
10+
<PackageReference Include="InterBaseSql.Data.InterBaseClient" Version="10.0.3" />
1111
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
1212
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
1313
</ItemGroup>

NETProvider/Demos/ConnectionBuilder/ConnectionBuilder/Properties/AssemblyInfo.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[assembly: AssemblyConfiguration("")]
1111
[assembly: AssemblyCompany("")]
1212
[assembly: AssemblyProduct("ConnectionBuilder")]
13-
[assembly: AssemblyCopyright("Copyright © 2021")]
13+
[assembly: AssemblyCopyright("Copyright © 2025")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
1616

NETProvider/Demos/ConsoleEmployee/ConsoleEmployee.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="InterBaseSql.Data.InterBaseClient" Version="10.0.2" />
11+
<PackageReference Include="InterBaseSql.Data.InterBaseClient" Version="10.0.3" />
1212
</ItemGroup>
1313

1414
</Project>

NETProvider/Demos/EntityCore/EntityCoreExample.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="InterBaseSql.EntityFrameworkCore.InterBase" Version="10.0.2.0" />
10+
<PackageReference Include="InterBaseSql.EntityFrameworkCore.InterBase" Version="10.0.3.0" />
1111
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.1.1">
1212
<PrivateAssets>all</PrivateAssets>
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

NETProvider/Demos/EntityCoreExample2/EFCore101.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
</ItemGroup>
2424

2525
<ItemGroup>
26-
<PackageReference Include="InterBaseSql.Data.InterBaseClient" Version="10.0.2.0" />
27-
<PackageReference Include="InterBaseSql.EntityFrameworkCore.InterBase" Version="10.0.2.0" />
26+
<PackageReference Include="InterBaseSql.Data.InterBaseClient" Version="10.0.3.0" />
27+
<PackageReference Include="InterBaseSql.EntityFrameworkCore.InterBase" Version="10.0.3.0" />
2828
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.11">
2929
<PrivateAssets>all</PrivateAssets>
3030
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

NETProvider/Demos/EventDemo/EventDemo.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="InterBaseSql.Data.InterBaseClient" Version="10.0.2" />
16+
<PackageReference Include="InterBaseSql.Data.InterBaseClient" Version="10.0.3" />
1717
</ItemGroup>
1818

1919
</Project>

NETProvider/Demos/SimpleGrid/Properties/AssemblyInfo.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[assembly: AssemblyConfiguration("")]
1111
[assembly: AssemblyCompany("")]
1212
[assembly: AssemblyProduct("WindowsFormsApp1")]
13-
[assembly: AssemblyCopyright("Copyright © 2020")]
13+
[assembly: AssemblyCopyright("Copyright © 2025")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
1616

NETProvider/Demos/SimpleGrid/SimpleDataGrid.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</PropertyGroup>
1111
<ItemGroup>
1212
<PackageReference Include="InterBaseSql.Data.InterBaseClient">
13-
<Version>10.0.2.0</Version>
13+
<Version>10.0.3.0</Version>
1414
</PackageReference>
1515
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
1616
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />

NETProvider/Provider/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# InterBase .NET Data Provider
22

3+
# 10.0.3 Summary
4+
5+
# IMPORTANT - Do not use 10.0.2 if needing to make remote connections.
6+
7+
## Fixed bugs in connecting to remote databases and Asynchronously attaching to remote services.
8+
## Added support for Instance Name (Instance in the ConnectionString) for services
9+
310
# 10.0.2 Summary
411

512
## EFCore and primary driver brought up to Fb 10.x equivalent

NETProvider/Provider/src/Directory.Build.props

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<Company>Embarcadero</Company>
99
<Product>NETProvider</Product>
1010
<Authors>Embarcadero</Authors>
11-
<PackageProjectUrl></PackageProjectUrl>
12-
<PackageIconUrl>http://altd.embarcadero.com//getit/public/images/Interbase_128x128.png</PackageIconUrl>
11+
<PackageProjectUrl>https://github.com/Embarcadero/IB.NETDataProvider</PackageProjectUrl>
12+
<PackageIconUrl>https://raw.githubusercontent.com/Embarcadero/IB.NETDataProvider/main/NETProvider/Provider/src/Interbase_128x128.png</PackageIconUrl>
1313
<PackageIcon>Interbase_128x128.png</PackageIcon>
1414
<RepositoryUrl>https://github.com/Embarcadero/IB.NETDataProvider</RepositoryUrl>
1515
<RepositoryType>git</RepositoryType>
@@ -20,6 +20,6 @@
2020
<PackageLicenseFile>license.txt</PackageLicenseFile>
2121
</PropertyGroup>
2222
<PropertyGroup>
23-
<CopyrightEndYear>2024</CopyrightEndYear>
23+
<CopyrightEndYear>2025</CopyrightEndYear>
2424
</PropertyGroup>
2525
</Project>

NETProvider/Provider/src/InterBaseSql.Data.InterBaseClient.Tests/Changelog.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1+
#Changes for 10.0.3
2+
3+
# New unit - RemoteConnections.cs
4+
** This unit does true remote connections to another machine instead of TCP/IP loopback (which could fail when the host is stripped from the connection since the DB is in the same location for local connections)
5+
** These tests will fail on other peoples systems if run. Important that you update the constants at the top of the class to appropriate for your system. There are a couple hard-coded string which will be cleaned up in the next release at this time. They too need updating.
6+
7+
# ConnectionStringTests.cs
8+
** Added 2 tests around parsing secure connection strings.
9+
110
# Changes for 10.0.1
2-
** Almost all tests now have an Async version in addition to their sync version. This differes from Fb code where all tests were converted to Async.
3-
** All tests frun in both normal and embedded modes
11+
** Almost all tests now have an Async version in addition to their sync version. This differs from Fb code where all tests were converted to Async.
12+
** All tests run in both normal and embedded modes
413

514
## IBExceptionTests.cs (Added)
615
** Tests the new exception class

NETProvider/Provider/src/InterBaseSql.Data.InterBaseClient.Tests/ConnectionStringTests.cs

+31
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
//$Authors = Jiri Cincura (jiri@cincura.net)
2020

21+
using System;
2122
using System.Globalization;
2223
using System.Threading;
2324
using InterBaseSql.Data.Common;
@@ -791,4 +792,34 @@ public void ParsingServerHostnamesWithPort()
791792
Assert.AreEqual("texdba", cs.Password);
792793
Assert.AreEqual("None", cs.Charset);
793794
}
795+
796+
[Test]
797+
public void ParseSSLInfo()
798+
{
799+
var connectionString = $"data source=dev-machine;initial catalog=c:\\Embarcadero\\IB2017_64\\examples\\database\\employee_Copy.gdb;user id=sysdba;password=masterkey;SSL=True;ServerPublicFile=PF;ClientCertFile=CCF;ClientPassPhraseFile=CPPF";
800+
var cs = new ConnectionString(connectionString);
801+
cs.Validate();
802+
Assert.AreEqual("dev-machine", cs.DataSource);
803+
Assert.AreEqual("c:\\Embarcadero\\IB2017_64\\examples\\database\\employee_Copy.gdb", cs.Database);
804+
Assert.AreEqual(true, cs.SSL);
805+
Assert.AreEqual("PF", cs.ServerPublicFile);
806+
Assert.AreEqual("CCF", cs.ClientCertFile);
807+
Assert.AreEqual("CPPF", cs.ClientPassPhraseFile);
808+
connectionString = $"data source=dev-machine;initial catalog=c:\\Embarcadero\\IB2017_64\\examples\\database\\employee_Copy.gdb;user id=sysdba;password=masterkey;SSL=True;ServerPublicPath=PP;ClientCertFile=CCF;ClientPassPhrase=CPP";
809+
cs = new ConnectionString(connectionString);
810+
cs.Validate();
811+
Assert.AreEqual("PP", cs.ServerPublicPath);
812+
Assert.AreEqual("CPP", cs.ClientPassPhrase);
813+
}
814+
[Test]
815+
public void ParseSSLMutualExclusivity()
816+
{
817+
var connectionString = $"ServerPublicPath=PP;ServerPublicFile=PF";
818+
var cs = new ConnectionString(connectionString);
819+
Assert.Throws<ArgumentException>(() => cs.Validate());
820+
connectionString = $"ServerPublicPath=PP;ClientCertFile=CCF;ClientPassPhraseFile=CPPF";
821+
cs = new ConnectionString(connectionString);
822+
Assert.Throws<ArgumentException>(() => cs.Validate());
823+
}
824+
794825
}

NETProvider/Provider/src/InterBaseSql.Data.InterBaseClient.Tests/IBCommandTests.cs

+2
Original file line numberDiff line numberDiff line change
@@ -1552,12 +1552,14 @@ public override void PassesTimeSpanWithProperPrecision()
15521552
[Test]
15531553
public override async Task InsertTimeTestAsync()
15541554
{
1555+
await Task.CompletedTask;
15551556
}
15561557

15571558
[Ignore("No Dialect 1 time datatype so just ignore")]
15581559
[Test]
15591560
public override async Task PassesTimeSpanWithProperPrecisionAsync()
15601561
{
1562+
await Task.CompletedTask;
15611563
}
15621564

15631565
}

NETProvider/Provider/src/InterBaseSql.Data.InterBaseClient.Tests/IBDataAdapterTests.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1417,13 +1417,12 @@ public IBDataAdapterTestsDialect1(IBServerType serverType)
14171417
[Ignore("Dialect 1 does not support Time")]
14181418
public override void UpdateTimeTest()
14191419
{
1420-
14211420
}
14221421

14231422
[Ignore("Dialect 1 does not support Time")]
14241423
public override async Task UpdateTimeTestAsync()
14251424
{
1426-
1425+
await Task.CompletedTask;
14271426
}
14281427

14291428

0 commit comments

Comments
 (0)