liquibase/liquibase — pull request #104 by siebz0r (2013-01-31 16:26:07+00:00)
Title: 'Select as' column labels got ignored

While writing a custom change which performed a 'select as ' query I noticed that the column label got ignored and instead the original column name was shown.

After some research I came across this stackoverflow question: http://stackoverflow.com/questions/12709814/

Using getColumnLabel instead of getColumnName fixes the problem and should maintain compatibility.

JavaDoc: http://docs.oracle.com/javase/6/docs/api/java/sql/ResultSetMetaData.html#getColumnLabel%28int%29