Community
Participate
Working Groups
Build Identifier: Eclipse 3.4.0, I20080617-2000 There is a method 'generateDDL()' in FEWizard.java in the following locations in the eclipse code. org.eclipse.datatools.sqltools.ddlgen.ui >> org.eclipse.datatools.sqltools.ddlgen.internal.ui >> org.eclipse.datatools.sqltools.ddlgen.internal.ui.wizards For some unknown reasons there is a check in the start of this method, that changes the platform specific new line [in case of windows => \n\r] to \n for databases like DB2 UDB, DB2 Z and Oracle. This results in the \n\r being added as the line breaks and in notepad, does not display properly. This DDL does not also execute with databases because of this line breaks forcing a syntax error. The solution for this would be remove the check in start of this method. Reproducible: Always
I will be attaching a patch for this ASAP.
Brian, I'm going to guess this comes to you for now?
Created attachment 194696 [details] Patch attachment - version 1
Please use 'Patch Attachment - version 1'
Hi Brian, When are going to push the code in to DTP? If you close the bugzilla defect I will close IDA defect. Please let me know on the same. Thanks, David.
Thanks for the ping. I will go ahead and put this fix into
(sorry) ... the 1.9.2 stream.
FYI, I'm having some problem applying this patch (but not because of anything wrong with the patch itself). When I bring this plugin org.eclipse.datatools.sqltools.ddlgen.ui into my workspace from Git, it comes in with the plugin name org.eclipse.datatools.sqltools.ddlgen.internal.ui. So the patch doesn't apply due to the plugin name mismatch. I'm investigating the problem.
I've fixed the plugin name problem. (See bug 359486.)
Here's the commit link: http://git.eclipse.org/c/datatools/org.eclipse.datatools.sqltools.git/commit/?id=fce1afd6e93d0c134a230a303a6201d4b554b11e
By the way, I removed the commented-out code for the commit.