Skip to content

Commit

Permalink
Merge pull request #140 from GreenmaskIO/fix/validate_table
Browse files Browse the repository at this point in the history
fix: Fixed returned schema and table name order in parseTableName
  • Loading branch information
wwoytenko authored Jun 27, 2024
2 parents e86ce1f + 6b824c8 commit 4b7da0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/db/postgres/cmd/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ func findTableBySchemaAndName(Transformations []*domains.Table, schemaName, tabl
return foundTable, nil
}

func parseTableName(name string) (tableName string, schemaName string, err error) {
func parseTableName(name string) (schemaName string, tableName string, err error) {
parts := strings.Split(name, ".")

if len(parts) > 2 {
Expand Down

0 comments on commit 4b7da0a

Please sign in to comment.