I saw this from a developer of a third party I really like and wondered
if it was true and if there was any known wy around it?
DB2 and/or the DB2 JDBC driver has a bug/limitation. Through the JDBC
driver you can't execute an SQL statement with a carriage return or line
feed, unless it is in a CREATE TRIGGER, PROCEDURE or FUNCTION. This
doesn't really matter to the user, except for a CREATE VIEW ... when you
try to retrieve the text. So, before any query is executed on DB2
through ADS, ADS will check to see if it is a CREATE TRIGGER, FUNCTION
or PROCEDURE, and if it isn't then it will remove all of the carriage
returns and line feeds. Thus, when you retrieve the CREATE VIEW
statement it will not have them.
This bug has been around for years and is well known. I am not sure why
IBM hasn't fixed it. Although I am not 100% sure if it is the driver or
the server, I believe it is a bug in the DB2 server.