Thread: [pgAdmin4][PATCH] Highlighting greenplum keywords in sql editor
Hi Hackers,
Attached is a patch that makes SQL editor show syntax highlighting with Greenplum keywords.
- Upgrade CodeMirror from 5.28 to 5.29 to include mime type "x-gpsql"
- Use "x-gpsql" mode for sql editor when connecting database is greenplum
- No behavior change to pg and ppas, still use "x-pgsql"
Regards,
Hao Wang & Teng Zhang
Attachment
Can we get this patch into the 2.0 release? |
On Mon, Sep 11, 2017 5:38 PM, Teng Zhang tezhang@pivotal.io wrote:
Hi Hackers,Attached is a patch that makes SQL editor show syntax highlighting with Greenplum keywords.- Upgrade CodeMirror from 5.28 to 5.29 to include mime type "x-gpsql"- Use "x-gpsql" mode for sql editor when connecting database is greenplum- No behavior change to pg and ppas, still use "x-pgsql"Regards,Hao Wang & Teng Zhang
On Mon, Sep 11, 2017 at 11:13 AM, Jing Li <jingli@pivotal.io> wrote:
Can we get this patch into the 2.0 release?
Shouldn't be a problem. It didn't make todays build though.
On Mon, Sep 11, 2017 5:38 PM, Teng Zhang tezhang@pivotal.io wrote:Hi Hackers,Attached is a patch that makes SQL editor show syntax highlighting with Greenplum keywords.- Upgrade CodeMirror from 5.28 to 5.29 to include mime type "x-gpsql"- Use "x-gpsql" mode for sql editor when connecting database is greenplum- No behavior change to pg and ppas, still use "x-pgsql"Regards,Hao Wang & Teng Zhang
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Akshay, can you review/commit this please?
Thanks.
On Mon, Sep 11, 2017 at 10:38 AM, Teng Zhang <tezhang@pivotal.io> wrote:
Hi Hackers,Attached is a patch that makes SQL editor show syntax highlighting with Greenplum keywords.- Upgrade CodeMirror from 5.28 to 5.29 to include mime type "x-gpsql"- Use "x-gpsql" mode for sql editor when connecting database is greenplum- No behavior change to pg and ppas, still use "x-pgsql"Regards,Hao Wang & Teng Zhang
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
On Mon, Sep 11, 2017 at 5:34 PM, Dave Page <dpage@pgadmin.org> wrote:
Akshay, can you review/commit this please?
Sure Dave.
Thanks.--On Mon, Sep 11, 2017 at 10:38 AM, Teng Zhang <tezhang@pivotal.io> wrote:Hi Hackers,Attached is a patch that makes SQL editor show syntax highlighting with Greenplum keywords.- Upgrade CodeMirror from 5.28 to 5.29 to include mime type "x-gpsql"- Use "x-gpsql" mode for sql editor when connecting database is greenplum- No behavior change to pg and ppas, still use "x-pgsql"Regards,Hao Wang & Teng ZhangDave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Akshay Joshi
Principal Software Engineer

Phone: +91 20-3058-9517
Mobile: +91 976-788-8246
Mobile: +91 976-788-8246
Code looks good to me. Thanks patch applied.
On Mon, Sep 11, 2017 at 5:40 PM, Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:
On Mon, Sep 11, 2017 at 5:34 PM, Dave Page <dpage@pgadmin.org> wrote:Akshay, can you review/commit this please?Sure Dave.Thanks.--On Mon, Sep 11, 2017 at 10:38 AM, Teng Zhang <tezhang@pivotal.io> wrote:Hi Hackers,Attached is a patch that makes SQL editor show syntax highlighting with Greenplum keywords.- Upgrade CodeMirror from 5.28 to 5.29 to include mime type "x-gpsql"- Use "x-gpsql" mode for sql editor when connecting database is greenplum- No behavior change to pg and ppas, still use "x-pgsql"Regards,Hao Wang & Teng ZhangDave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company--Akshay JoshiPrincipal Software EngineerPhone: +91 20-3058-9517
Mobile: +91 976-788-8246
Akshay Joshi
Principal Software Engineer

Phone: +91 20-3058-9517
Mobile: +91 976-788-8246
Mobile: +91 976-788-8246