From 517a797947268dfae9e43935ea796bedd4366825 Mon Sep 17 00:00:00 2001 From: Murtuza Zabuawala Date: Fri, 15 Jul 2016 11:59:45 +0100 Subject: [PATCH] Fix query tool display of various types: date reltime abstime time with timezone time without timezone --- .../tools/sqleditor/templates/sqleditor/js/sqleditor.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js b/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js index 5fb07c396..db0498bd7 100644 --- a/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js +++ b/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js @@ -1555,9 +1555,16 @@ define( case "numeric": col_cell = 'number'; break; + case "date": + case "reltime": + case "abstime": case "timestamp without time zone": case "timestamp with time zone": - col_cell = 'datetime'; + case "time with time zone": + case "time without time zone": + col_cell = Backgrid.DatetimeCell.extend({ + formatter: Backgrid.StringFormatter, + }); break; case "json": case "json[]":