Bug #36566 | IFNULL SELECT STATEMENT not recognised in XSD | ||
---|---|---|---|
Submitted: | 7 May 2008 14:47 | Modified: | 20 May 2008 21:23 |
Reporter: | R Roberts | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | 5.2.1 | OS: | Windows |
Assigned to: | CPU Architecture: | Any |
[7 May 2008 14:47]
R Roberts
[8 May 2008 6:28]
Tonci Grgin
Error
Attachment: Bug36566.JPG (image/jpeg, text), 34.20 KiB.
[8 May 2008 6:31]
Tonci Grgin
Hi and thanks for your report. Verified as described using c/NET 5.2.1 on WinXP Pro SP2 localhost with MySQL server 5.0.58 and VS 2005. Query is functioning in mysql cl client. mysql> SELECT d.Rbr, d.Konto, IFNULL((SELECT k.Opis FROM solusd.kontplan AS k WH ERE d.Konto = k.Konto AND d.Godina = k.Godina), "SomeText") AS AddTxt FROM solus d.dnevnik AS d WHERE d.Godina = 2007; Empty set (0.05 sec)
[20 May 2008 17:45]
Reggie Burnett
Investigating. Nothing yet.
[20 May 2008 21:23]
Reggie Burnett
This is not a bug. Unfortunately Visual Studio (2005 & 2008) is hard coded to examine T-SQL in this wizard. The wizard attempts to "understand" the sql in order to construct the columns and to attempt to create the update/insert/delete statements. IFNULL is seen as a function and causes the failure. The table adapter is still created (this is just a warning) and the fill method of the adapter still works. I have confirmed this with my contact at MS.