I'm running through a loop adding parameters, when I get to a NULL, the program punts. My statement looks like this:
mysql = "Insert into TABLE (field1) VALUES (:Col1)"
mycomm = New NpgsqlCommand (mySQL, conn)
myComm.Parameters.Add("Col" & cCnt, NpgsqlTypes.NpgsqlDbType.Double).Value = Obj.value
myComm.ExecuteNonQuery()
This works fine if Obj.value is not empty, but if Obj.value is nothing, my Execute statement fails. I'd like to just insert a NULL value into the DB. Any ideas? Thanks for any help!