Skip to content

ExecuteAsync throws Exception when value in insert query contains " : " #1605

@timurash

Description

@timurash

This code:

await connection.ExecuteAsync("insert into testtable (building_address_house) values ('13 sum : A')", transaction)

Or this code:

await connection.ExecuteAsync("insert into testtable (building_address_house) values (' : ')", transaction)

Throws this exception:

System.NotSupportedException: The member Connection of type Npgsql.NpgsqlConnection cannot be used as a parameter value

image

How can I fix this problem?

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