public inbox for [email protected]
help / color / mirror / Atom feedFrom: Murtuza Zabuawala <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: PATCH: To handle numeric type display (pgAdmin4)
Date: Thu, 4 Aug 2016 12:29:01 +0530
Message-ID: <CAKKotZTfFiUJjPB1rdPosLA-azeuG46HUz76vPTfH+Cw=0B1EA@mail.gmail.com> (raw)
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgadmin-hackers>
Hi,
Please find minor patch to handle numeric/float type display.
RM#1463
--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers
Attachments:
[application/octet-stream] RM_1463.patch (1.1K, 3-RM_1463.patch)
download | inline diff:
diff --git a/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js b/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js
index a53326b..1d248c7 100644
--- a/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js
+++ b/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js
@@ -1581,13 +1581,19 @@ define(
// Identify cell type of column.
switch(type) {
case "integer":
+ case "bigint":
+ case "smallint":
col_cell = 'integer';
break;
case "boolean":
col_cell = 'boolean';
break;
case "numeric":
- col_cell = 'number';
+ case "double precision":
+ case "real":
+ col_cell = Backgrid.NumberCell.extend({
+ formatter: Backgrid.StringFormatter
+ });
break;
case "date":
case "reltime":
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: PATCH: To handle numeric type display (pgAdmin4)
In-Reply-To: <CAKKotZTfFiUJjPB1rdPosLA-azeuG46HUz76vPTfH+Cw=0B1EA@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox