We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9379ddd + 3d7e02e commit cbfa130Copy full SHA for cbfa130
server/table.go
@@ -268,6 +268,8 @@ func newColumn(def *ast.ColumnDef) *Column {
268
dbdt = DBDTText
269
case TCArray:
270
dbdt = DBDTJson
271
+ case TCJson:
272
+ dbdt = DBDTJson
273
}
274
275
var allowCommitTimestamp bool
@@ -307,6 +309,8 @@ func astTypeToTypeCode(astTypeName ast.ScalarTypeName) TypeCode {
307
309
return TCDate
308
310
case ast.TimestampTypeName:
311
return TCTimestamp
312
+ case ast.ScalarTypeName("JSON"):
313
+ return TCJson
314
default:
315
panic("unknown type")
316
server/value.go
@@ -228,6 +228,7 @@ const (
228
TCBytes
229
TCArray
230
TCStruct
231
+ TCJson
232
)
233
234
type ArrayValue interface {
0 commit comments