Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

Commit

Permalink
[xsp] Fix for bug #636763. Mono.Data.Sqlite must be used since Mono.D…
Browse files Browse the repository at this point in the history
…ata.SqliteClient is deprecated.
  • Loading branch information
grendello committed Sep 7, 2010
1 parent 324e7af commit ca851f2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
13 changes: 7 additions & 6 deletions test/1.1/webcontrols/dbpage1.aspx
Expand Up @@ -29,13 +29,15 @@
Version ver = Environment.Version;
if (providerAssembly == null || providerAssembly == "")
if (ver.Major == 1)
providerAssembly = "Mono.Data.SqliteClient, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756";
else if (ver.Major == 2)
providerAssembly = "Mono.Data.SqliteClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756";
if (ver.Major == 2)
providerAssembly = "Mono.Data.Sqlite, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756";
else if (ver.Major == 4)
providerAssembly = "Mono.Data.Sqlite, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756";
else
throw new InvalidOperationException (String.Format ("Framework version {0} is not supported by this demo.", ver));
if (cncTypeName == null || cncTypeName == "")
cncTypeName = "Mono.Data.SqliteClient.SqliteConnection";
cncTypeName = "Mono.Data.Sqlite.SqliteConnection";
if (cncString == null || cncString == "") {
string dbPath = Path.Combine (Path.GetDirectoryName (Request.MapPath (Request.FilePath)), "dbpage1.sqlite");
Expand Down Expand Up @@ -182,4 +184,3 @@ CellPadding="5" runat="server"/>
</form>
</body>
</html>

12 changes: 7 additions & 5 deletions test/1.1/webcontrols/dbpage2.aspx
Expand Up @@ -35,13 +35,15 @@
Version ver = Environment.Version;
if (providerAssembly == null || providerAssembly == "")
if (ver.Major == 1)
providerAssembly = "Mono.Data.SqliteClient, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756";
else if (ver.Major == 2)
providerAssembly = "Mono.Data.SqliteClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756";
if (ver.Major == 2)
providerAssembly = "Mono.Data.Sqlite, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756";
else if (ver.Major == 4)
providerAssembly = "Mono.Data.Sqlite, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756";
else
throw new InvalidOperationException (String.Format ("Framework version {0} is not supported by this demo.", ver));
if (cncTypeName == null || cncTypeName == "")
cncTypeName = "Mono.Data.SqliteClient.SqliteConnection";
cncTypeName = "Mono.Data.Sqlite.SqliteConnection";
if (cncString == null || cncString == "") {
string dbPath = Path.Combine (Path.GetDirectoryName (Request.MapPath (Request.FilePath)), "dbpage2.sqlite");
Expand Down

0 comments on commit ca851f2

Please sign in to comment.