Skip to content

Commit

Permalink
Update parser from ANTLR
Browse files Browse the repository at this point in the history
  • Loading branch information
AMagistroni committed Sep 4, 2021
1 parent 8ae1f67 commit ea8738e
Show file tree
Hide file tree
Showing 5 changed files with 64,154 additions and 72,912 deletions.
4 changes: 2 additions & 2 deletions SqlSchemaCompare.Core/TSql/Factory/TSqlTableFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ public Table.TableConstraint CreateAlterTable(ParserRuleContext context)
string name = string.Empty;
if ((alterTableContext.fk != null) || (alterTableContext.constraint != null))
{
name = alterTableContext.constraint.GetText();
name = alterTableContext.constraint != null ? alterTableContext.constraint.GetText() : default;
}
else {
else if (alterTableContext.column_def_table_constraints() != null) {
var constraint = ((TSqlParser.Column_def_table_constraintContext)alterTableContext.column_def_table_constraints().children[0]).table_constraint();
if (constraint.CONSTRAINT() != null)
{
Expand Down
Loading

0 comments on commit ea8738e

Please sign in to comment.