Skip to content

Commit

Permalink
Adding BY into PostgresGenerator response and fixing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BigYellowHammer committed Jul 19, 2019
1 parent 22f8bf8 commit baf4df0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -380,7 +380,7 @@ public override string Generate(CreateSequenceExpression expression)

if (seq.Increment.HasValue)
{
result.AppendFormat(" INCREMENT {0}", seq.Increment);
result.AppendFormat(" INCREMENT BY {0}", seq.Increment);
}

if (seq.MinValue.HasValue)
Expand Down
Expand Up @@ -30,7 +30,7 @@ public override void CanCreateSequenceWithCustomSchema()
expression.Sequence.SchemaName = "TestSchema";

var result = Generator.Generate(expression);
result.ShouldBe("CREATE SEQUENCE \"TestSchema\".\"Sequence\" INCREMENT 2 MINVALUE 0 MAXVALUE 100 START WITH 2 CACHE 10 CYCLE;");
result.ShouldBe("CREATE SEQUENCE \"TestSchema\".\"Sequence\" INCREMENT BY 2 MINVALUE 0 MAXVALUE 100 START WITH 2 CACHE 10 CYCLE;");
}

[Test]
Expand All @@ -39,7 +39,7 @@ public override void CanCreateSequenceWithDefaultSchema()
var expression = GeneratorTestHelper.GetCreateSequenceExpression();

var result = Generator.Generate(expression);
result.ShouldBe("CREATE SEQUENCE \"Sequence\" INCREMENT 2 MINVALUE 0 MAXVALUE 100 START WITH 2 CACHE 10 CYCLE;");
result.ShouldBe("CREATE SEQUENCE \"Sequence\" INCREMENT BY 2 MINVALUE 0 MAXVALUE 100 START WITH 2 CACHE 10 CYCLE;");
}

[Test]
Expand Down

0 comments on commit baf4df0

Please sign in to comment.