I'm trying to write a query like the following
Code: Select all
cmd.CommandText = "SELECT * FROM foo WHERE col = :val"
Code: Select all
cmd.Parameters.Add("val", PgSqlType.Date).Value = DBNull.Value
But basically in this query, the syntax "WHERE col = null" is not valid. Does dotConnect convert this to "WHERE col IS null" for me? It doesn't look like it is because I'm not getting any results.
Any ideas?