Skip to content

Commit

Permalink
fix: select mytable.* not working
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanoGeorge committed Dec 21, 2023
1 parent a2cac75 commit 82ae136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statement.go
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ func (stmt *Statement) Changed(fields ...string) bool {
return false
}

var nameMatcher = regexp.MustCompile(`^(?:\W?(\w+?)\W?\.)?\W?(\w+?)\W?$`)
var nameMatcher = regexp.MustCompile(`^(?:\W?(\w+?)\W?\.)?\W?(\w+?|\*)\W?$`)

// SelectAndOmitColumns get select and omit columns, select -> true, omit -> false
func (stmt *Statement) SelectAndOmitColumns(requireCreate, requireUpdate bool) (map[string]bool, bool) {
Expand Down

0 comments on commit 82ae136

Please sign in to comment.