Skip to main content

Object reference not set to an instance of an object issue with 'VerticaParameter' initialization.

  • December 11, 2013
  • 0 replies
  • 5 views

Hope
Hi
        I got an issue in Vertica ADO.Net Driver comming under \Vertica Client Drivers 6.1.3. It may related to 'VerticaParameter' creation.

       Corresponding to my select query, i use the following code to set query parameter.
But it throw an exception like 'Object reference not set to an instance of an object.'.  

      List<VerticaParameter> paramCollection = new List<VerticaParameter>();     
      paramCollection.Add(new VerticaParameter("id", 1));