Commit dd7ab43d by linux chips

added missing cases for DATETIME datatype

parent 5114b1f7
......@@ -1178,6 +1178,8 @@ func makeGoLangTypeName(ti typeInfo) string {
return "IMAGE"
case typeVariant:
return "SQL_VARIANT"
case typeDateTime:
return "DATETIME"
default:
panic(fmt.Sprintf("not implemented makeDecl for type %d", ti.TypeId))
}
......@@ -1297,6 +1299,8 @@ func makeGoLangTypeLength(ti typeInfo) (int64, bool) {
return 2147483647, true
case typeVariant:
return 0, false
case typeDateTime:
return 0, false
default:
panic(fmt.Sprintf("not implemented makeDecl for type %d", ti.TypeId))
}
......@@ -1404,6 +1408,8 @@ func makeGoLangTypePrecisionScale(ti typeInfo) (int64, int64, bool) {
return 0, 0, false
case typeVariant:
return 0, 0, false
case typeDateTime:
return 0, 0, false
default:
panic(fmt.Sprintf("not implemented makeDecl for type %d", ti.TypeId))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment