Skip to content

query schema type, not accurate from go types #9

@aceforeverd

Description

@aceforeverd

openmldb-go-sdk/conn.go

Lines 141 to 147 in 2c5a00d

// TODO(someone): Type infer from input slice does not work always. Consider those cases:
// 1. a int type can be a int32 or int64, depends on value size.
// 2. we're not covering more input types like uint.
// 3. For a int16 or int32 input from DB.Query(...), it always convert to int64 because driver.Value
// only expect int64 from primitive types.
//
// A better approach is to ask the schema types from api server, which in turn ask types info to SQL compiler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions