Skip to content

Parameter binding change seems to have moved from nchar to ntext #39

@robx

Description

@robx

Not quite sure who/what's wrong here, but thought I'd log this one anyway since others might run into similar issues.

I tried updating hasura/graphql-engine to build against odbc-0.2.5 (currently it builds against 7c0cea45d0b779419eb16177407c4ee9e7ba4c6f which is between 0.2.3 and 0.2.4), and I see test failures with

[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]The data types nvarchar and ntext are incompatible in the equal to operator.

Reading through the recent changes to this package, I believe this is likely to be related to how commit 555182e changes text values to be passed via withBindParameter as a TextParam t, where it was previously encoded directly via renderValue.

Now it may well be that the tests are just wrong, but if so, it seems like the change in behaviour might be worth mentioning in the changelog?

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