Skip to content

Commit

Permalink
Merge pull request #40 from nicolerenee/master
Browse files Browse the repository at this point in the history
Update constraint check regex
  • Loading branch information
glerchundi authored May 10, 2022
2 parents b99619c + 30e22c6 commit b0f1676
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var rgxCDBFkey = regexp.MustCompile(`(?m)((\n)?.*CONSTRAINT.*?FOREIGN KEY.*?\n|(\n)?[a-zA-Z _]*VALIDATE CONSTRAINT.*?.*?\n)`)
var rgxCDBFkey = regexp.MustCompile(`(?m)((\n)?.*CONSTRAINT.*?FOREIGN KEY.*?\n|(\n)?[a-zA-Z _\.]*VALIDATE CONSTRAINT.*?.*?\n)`)

type crdbTester struct {
dbConn *sql.DB
Expand Down Expand Up @@ -146,4 +146,4 @@ func buildQueryString(user, pass, dbname, host string, port int, sslmode string)
}

return fmt.Sprintf("postgresql://%s@%s:%d/%s?sslmode=%s", up, host, port, dbname, sslmode)
}
}

0 comments on commit b0f1676

Please sign in to comment.