Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
if i run the query in Query Brower is OK

SQL
select @var1:=@var1+1 RANK,@var2 TEST,
a.COD,A.NAME from arts a,
(SELECT @var1:=0 , @var2:='TEST') r


but in c# i got...

Fatal error encountered during command execution.


I think that is interpreted as parameters and not as Assignment Operators
http://dev.mysql.com/doc/refman/5.1/en/assignment-operators.html[^]

how can I fix that?
Posted

1 solution

Use "Allow User Variables=true;" in connection strings :)
Solved by me!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900