public inbox for [email protected]  
help / color / mirror / Atom feed
PATCH: To handle numeric type display (pgAdmin4)
2+ messages / 2 participants
[nested] [flat]

* PATCH: To handle numeric type display (pgAdmin4)
@ 2016-08-04 06:59  Murtuza Zabuawala <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: Murtuza Zabuawala @ 2016-08-04 06:59 UTC (permalink / raw)
  To: pgadmin-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":


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: PATCH: To handle numeric type display (pgAdmin4)
@ 2016-08-04 10:31  Dave Page <[email protected]>
  parent: Murtuza Zabuawala <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Dave Page @ 2016-08-04 10:31 UTC (permalink / raw)
  To: Murtuza Zabuawala <[email protected]>; +Cc: pgadmin-hackers

Thanks, applied.

On Thu, Aug 4, 2016 at 7:59 AM, Murtuza Zabuawala
<[email protected]> wrote:
> 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
>



-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: 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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-08-04 10:31 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-08-04 06:59 PATCH: To handle numeric type display (pgAdmin4) Murtuza Zabuawala <[email protected]>
2016-08-04 10:31 ` Dave Page <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox