Skip to content

Commit

Permalink
Fixed issue 7: IsSQL2008 returning false for certain versions of SQL …
Browse files Browse the repository at this point in the history
…Server 2008
  • Loading branch information
unknown committed Sep 17, 2010
1 parent 54f0966 commit f853264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SubSonic/Utility.cs
Expand Up @@ -194,10 +194,10 @@ public static bool IsSql2005(DataProvider provider)
/// <returns>
/// <c>true</c> if the specified provider is SQL2008; otherwise, <c>false</c>.
/// </returns>

public static bool IsSql2008(DataProvider provider)
{
return provider.DatabaseVersion.IndexOf("2008 - 10.") > -1 ||
provider.DatabaseVersion.IndexOf("2008 (RTM) - 10.") > -1;
return provider.DatabaseVersion.Contains("SQL Server 2008");
}

/// <summary>
Expand Down

0 comments on commit f853264

Please sign in to comment.