It looks like the query is coming from a select statement liquibase runs to determine if a column is auto-increment or not. It should be a simple "select X from Y where 0=1" query. I added logging of the statement in the code for 3.0.4, but I'm not sure what the problem would be now. The column names should be escaped as well, so it should even handle crazy columns or tables with "("s in them.
Any chance you have any strangely named tables or columns?
Nathan
Nathan