Fix erroneous output with TIMESTAMP columns
Fix erroneous output with TIMESTAMP columns

alexanderlaw/sqlfiddle2,alexanderlaw/sqlfiddle2,alexanderlaw/sqlfiddle2,alexanderlaw/sqlfiddle2,alexanderlaw/sqlfiddle2