I've been trying to track down an issue where my SqliteConnection is misdetected as an SqlServerConnection:
[Fact]
public void npoco_bug()
{
var c = new SqliteConnection("Data Source=test.db");
var db = new NPoco.Database(c);
Assert.Equal("SqlServerDatabaseType", db.DatabaseType.GetType().Name);
}
I expected the DatabaseType to be SQLiteDatabaseType. The reason for the misdetection is due to the uppercase SQLite in the Resolve method on DatabaseType. Is there another SqliteConnection type that I should be aware of that has the SQL capitalised?
Hi,
I've been trying to track down an issue where my SqliteConnection is misdetected as an SqlServerConnection:
I expected the DatabaseType to be SQLiteDatabaseType. The reason for the misdetection is due to the uppercase SQLite in the Resolve method on DatabaseType. Is there another SqliteConnection type that I should be aware of that has the SQL capitalised?
I can make a patch if this is indeed a bug.
Regards, Håkon