NPGSQL seems to have a rather large bug?

Posted by Mr Shoubs on Stack Overflow See other posts from Stack Overflow or by Mr Shoubs
Published on 2010-05-19T10:36:32Z Indexed on 2010/05/19 10:40 UTC
Read the original article Hit count: 374

Filed under:
|

Hello, this is a weird one, when I run the following code all rows are returned from the db. Imagaine what would happen if this was an update or delete.

    Dim cmd As New NpgsqlCommand

    cmd.Connection = conn
    cmd.CommandText = "select * FROM ac_profiles WHERE profileid = @profileId"
    cmd.Parameters.Add("@profile", 58)
    Dim dt As DataTable = DataAccess2.DataAccess.sqlQueryDb(cmd)

    DataGridView1.DataSource = dt

My question is why is this happening?

© Stack Overflow or respective owner

Related posts about npgsql

Related posts about .NET