Re: AddWithValue
Posted by: Fernando Gonzalez.Sanchez
Date: March 20, 2013 11:50AM

Hi,

Your code looks just fine, it should work as is.

by any chance are you using in the connection string "AllowUserVariables=true"? the default value is false (interferes with parameter binding when being true).

Another thing to try is to enable MySql server log and see the query that the server receives (there you should see it with the hard coded value).

Thanks

Options: ReplyQuote


Subject
Written By
Posted
March 19, 2013 02:22PM
Re: AddWithValue
March 20, 2013 11:50AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.