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

Support for variable size types including json #21

Open
lithiumfrost opened this issue Dec 9, 2020 · 2 comments
Open

Support for variable size types including json #21

lithiumfrost opened this issue Dec 9, 2020 · 2 comments

Comments

@lithiumfrost
Copy link

Currently, if I use the most recent version of the library with this query:

SELECT json_query(labels, '$') as labels FROM data_to_extract_labels WHERE [name] = ?name

I get a Error: unhandled exception: value out of range [RangeDefect] in the getColDetails proc.

If I change that to:

SELECT cast(json_query(labels, '$') as varchar(400)) as labels FROM data_to_extract_labels WHERE [name] = ?name

The query runs correctly.

@heigos
Copy link

heigos commented Dec 17, 2020

hi!

I get the same error with nvarchar(MAX).
nvarchar(4000) works fine, but when I change the column to nvarchar(MAX), it fails:

\tests\odbc.nim(335) executeFetch
\tests\odbc.nim(307) setupColumns
\tests\odbc.nim(295) getColDetails
\nim\lib\system\fatal.nim(49) sysFatal
Error: unhandled exception: value out of range [RangeDefect]

@coffeepots
Copy link
Owner

Thanks for this.

It looks like nvarchar(MAX) is a bit of an edge case I need to support. Related to #19

Repository owner deleted a comment Feb 23, 2024
Repository owner deleted a comment Feb 23, 2024
Repository owner deleted a comment Feb 23, 2024
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

3 participants