Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query schema type, not accurate from go types #9

Open
aceforeverd opened this issue Apr 26, 2024 · 0 comments
Open

query schema type, not accurate from go types #9

aceforeverd opened this issue Apr 26, 2024 · 0 comments

Comments

@aceforeverd
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant