Forum Stats

  • 3,780,920 Users
  • 2,254,456 Discussions


MySql Connectors and Parameterized Queries

In the documentation on MySQL Connectors the examples for setting parameters for parameterized queries look something like this, using an @ sign in the parameter name:

<xxx>.Parameters.AddWithValue("@Dummy", "Goofy");

Then in the query string you can have something like "SELECT * WHERE name=@Dummy

But for years now I have declared the parameter name without using the @ sign. My queries run just fine.

Is this fact documented anywhere? Is this going to blow up on me one day?