Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzik committed May 13, 2024
1 parent 713baad commit 596c7cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DuckDB.NET.Test/Parameters/SchemaTests.cs
Expand Up @@ -76,21 +76,21 @@ public void ReservedWords()
[Fact]
public void Tables()
{
Command.CommandText = "CREATE TABLE bar(key INTEGER)";
Command.CommandText = "CREATE TABLE foo(key INTEGER)";
Command.ExecuteNonQuery();

var schema = Connection.GetSchema("Tables");
Assert.Equal(1, schema.Rows.Count);
Assert.Equal("bar", schema.Rows[0]["table_name"]);
Assert.Equal("foo", schema.Rows[0]["table_name"]);
}

[Fact]
public void TablesWithRestrictions()
{
Command.CommandText = "CREATE TABLE foo(key INTEGER)";
Command.ExecuteNonQuery();
Command.CommandText = "CREATE TABLE bar(key INTEGER)";
Command.ExecuteNonQuery();
Command.CommandText = "CREATE TABLE baz(key INTEGER)";
Command.ExecuteNonQuery();

var schema = Connection.GetSchema("Tables", [null, null, "bar"]);
Assert.Equal(1, schema.Rows.Count);
Expand Down

0 comments on commit 596c7cd

Please sign in to comment.