Recent activity
Subscribe to this feed
ferdy.nagy marked one of Aaron's replies in Cloudera as useful. Aaron replied to the problem "Column names with '-' create invalid property names in generated code".
ferdy.nagy reported a problem in Cloudera on September 30, 2009 00:14:
Column names with '-' create invalid property names in generated codeColumn names that contain a '-' create a generated class that can't be compiled. I'm using MySQL which allows such characters.
To fix, I changed the SqlManager class getColumnNames and getColumnTypes methods to replace the '-' with '_' on the colName string.
I'm sure there are other column characters that are illegal java identifiers, so perhaps a general escape mechanism should be applied.
- Ferdy
Loading Profile...
