From 82ae136c078985173d505f227aa0b66b2023d2a6 Mon Sep 17 00:00:00 2001 From: StephanoGeorge Date: Thu, 21 Dec 2023 16:43:58 +0800 Subject: [PATCH] fix: select mytable.* not working --- statement.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statement.go b/statement.go index 59c0b772..ab471112 100644 --- a/statement.go +++ b/statement.go @@ -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) {