This is an automated email from the ASF dual-hosted git repository.
zky pushed a commit to branch release-v0.12
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/release-v0.12 by this push:
new 66b16fe0 fix: starrocks plugin sync pg enum data type (#3416)
66b16fe0 is described below
commit 66b16fe06c69f86c8d52be1f3cbf08738d1be140
Author: long2ice <[email protected]>
AuthorDate: Fri Oct 14 09:45:11 2022 +0800
fix: starrocks plugin sync pg enum data type (#3416)
---
plugins/starrocks/utils.go | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/plugins/starrocks/utils.go b/plugins/starrocks/utils.go
index 60833277..f6670b6a 100644
--- a/plugins/starrocks/utils.go
+++ b/plugins/starrocks/utils.go
@@ -87,10 +87,8 @@ func stringIn(s string, l ...string) bool {
return false
}
func getDataType(dataType string) string {
- starrocksDatatype := dataType
- if hasPrefixes(dataType, "varchar", "varying", "character", "bytea") {
- starrocksDatatype = "string"
- } else if hasPrefixes(dataType, "datetime", "timestamp") {
+ starrocksDatatype := "string"
+ if hasPrefixes(dataType, "datetime", "timestamp") {
starrocksDatatype = "datetime"
} else if strings.HasPrefix(dataType, "bigint") {
starrocksDatatype = "bigint"