Skip to content

Commit

Permalink
fixing while condition
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Feb 10, 2024
1 parent 9a2dcb8 commit 7704f0b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/lib/sql-parse-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,7 @@ export function parseColumnConstraint(
// We may visit more rule in the future, but at the moment
// it is too complex to handle all the rules.
// We will just grab foreign key column first
while (
!cursor.end() ||
!(cursor.type() === "Parens") ||
!cursor.match(",")
) {
while (!cursor.end() && cursor.type() !== "Parens" && !cursor.match(",")) {
cursor.next();
}

Expand Down

0 comments on commit 7704f0b

Please sign in to comment.