Bug #10153 | Crystal Report for .Net 1.1 and MyODBC 3.51.11 (OuterJoin syntax problem) | ||
---|---|---|---|
Submitted: | 25 Apr 2005 18:05 | Modified: | 25 Oct 2005 15:11 |
Reporter: | Pascal | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / ODBC | Severity: | S2 (Serious) |
Version: | 3.51.11 | OS: | Windows (Windows XP) |
Assigned to: | Peter Harvey | CPU Architecture: | Any |
[25 Apr 2005 18:05]
Pascal
[27 Apr 2005 21:23]
MySQL Verification Team
Could you please provide a test case with tables dump (with data) and the .NET project ? Thanks in advance.
[28 Apr 2005 18:02]
Pascal
Tables test schema and data
Attachment: crystal_bug.sql (text/plain), 751 bytes.
[28 Apr 2005 18:02]
Pascal
.Net test project
Attachment: MySQLBugReport_DotNet_Project.zip (application/x-zip-compressed, text), 14.45 KiB.
[28 Apr 2005 18:03]
Pascal
I have added 2 files : one with the tables schema and data, the other with the .Net project. Thanks for help
[1 May 2005 4:50]
MySQL Verification Team
Thank you for the feedback. I was able for get the behavior reported, however I am not sure if that can be considered a Connector/ODBC bug instead maybe an incompability of the way which Crystal Report does the SQL query, looking the Show SQL Query you can see: SELECT `client`.`Id`, `client`.`Label`, `order2`.`Price`, `order2`.`LabelOrder` FROM {oj `order2` `order2` RIGHT OUTER JOIN `client` `client` ON `order2`.`Fk_cli`=`client`.`Id`} ORDER BY `client`.`Id`; the above FROM {oj...} can't be handled by the server. I tested the same query with Access 2003 and created a report but using a query like below: SELECT `client`.`Id`, `client`.`Label`, `order2`.`Price`, `order2`.`LabelOrder` FROM `order2` `order2` RIGHT OUTER JOIN `client` `client` ON `order2`.`Fk_cli`=`client`.`Id` ORDER BY `client`.`Id`; I attached a picture to this bug report which shows the above. Please verify if you can change the Report's SQL Query or consult the support of Crystal Report for. Thank you for the bug report.
[1 May 2005 4:51]
MySQL Verification Team
Same report with Access
Attachment: report-access.PNG (image/png, text), 32.89 KiB.
[2 May 2005 9:27]
Pascal
Thanks for help. I am happy you have reproduce my problem. As you said it works with Access, and as I said in the "Description" of the bug above, it works with an ODBC connection to SQLServer too. I can't change the generated query (or I don't know how I can do that dynamically without the Designer) and I am already in relation with the Crystal Report support. We are working on it. The only think I have to know and I have not found is the correct registry key to use for saying Crystal to not use this "oj" syntax. See the "Description" and the "Suggested fix" of the bug I have written above. I have tried lot of keys, but if anyone can found the working key, I will be grateful forever.
[4 May 2005 11:05]
Pascal
I have the solution ! A lot of thanks to Crystal Decision support which has found the solution after several email exchange. The key to use is : [HKEY_CURRENT_USER\Software\Crystal Decisions\Crystal Reports\VSNET\DatabaseOptions\QueryBuilder\OuterJoinEscSeq] "NoOuterJoinEscSeq"="MyODBC3" Hope it can help other people in trouble like we were !
[25 Oct 2005 15:11]
Peter Harvey
Noted - thanks for taking the time to provide us all with that solution.
[19 Dec 2007 23:12]
Davi Arnaut
This (and potentially other) issues with ODBC's Outer Join Escape Sequence have been fixed in Bug#28317.