In the following code, used to get a list of products in a particular line, the command only returns results when I hard code (concatenate) productLine
into the SQL. The parameter substitution never happens.
+ "lineName = '@productLine' "
+ "and isVisible = 1 ";
MySqlDataAdapter adap = new MySqlDataAdapter(sql, msc);
adap.SelectCommand.Parameters.Add("@productLine", productLine);