This is an automated email from the ASF dual-hosted git repository.

zky pushed a commit to branch release-v0.14
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/release-v0.14 by this push:
     new 2f4345ae fix: starrocks plugin sync pg enum data type (#3436)
2f4345ae is described below

commit 2f4345ae8975d51ba99c8a55c9eec215fc093ba9
Author: long2ice <[email protected]>
AuthorDate: Fri Oct 14 09:42:56 2022 +0800

    fix: starrocks plugin sync pg enum data type (#3436)
---
 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 0aa1ce5b..9588b9fe 100644
--- a/plugins/starrocks/utils.go
+++ b/plugins/starrocks/utils.go
@@ -88,10 +88,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"

Reply via email to