Bug #37486 | MySQL Connector Net 5.2.2 Unable to Parse @ | ||
---|---|---|---|
Submitted: | 18 Jun 2008 17:18 | Modified: | 3 Jul 2008 21:05 |
Reporter: | Kevin Stowe | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | 5.2.2 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | ConnectorNet, Parsing @ |
[18 Jun 2008 17:18]
Kevin Stowe
[18 Jun 2008 17:21]
Kevin Stowe
\\Wrong Category Selection
[18 Jun 2008 17:53]
Kevin Stowe
I would Like to note a detail, the problem is not that it is not correctly parsing the @ symbol, more so that it is treating it as if it is a Parameter of the stored procedure.
[23 Jun 2008 22:40]
Kevin Stowe
For anyone who wants to know what was causing the problem, is the connector\net is unable to parse comments, i had a comment -- Scheduler so take comments out, it fixes it but it still remains a bug. I decompiled the connector\net code and found that it indeed had no parsing functionality to parse out comments. should i post a new bug report for this or will you guys handle it from here?
[3 Jul 2008 21:05]
Reggie Burnett
Kevin This is not a bug. With 5.2 we are using @ for parameters but that means that any SQL that uses user variables will cause a problem. To avoid this you have to set a connection string option. Add 'allow user variables=yes' to your connection string and it should start working.