[pgAdmin4][PATCH] Highlighting greenplum keywords in sql editor

Поиск
Список
Период
Сортировка
Искать

[pgAdmin4][PATCH] Highlighting greenplum keywords in sql editor

От:
Teng Zhang <tezhang@pivotal.io>
Дата:
Вложения:
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


Re: [pgAdmin4][PATCH] Highlighting greenplum keywords in sqleditor

От:
Jing Li <jingli@pivotal.io>
Дата:
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


Re: [pgAdmin4][PATCH] Highlighting greenplum keywords in sql editor

От:
Dave Page <dpage@pgadmin.org>
Дата:


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

Re: [pgAdmin4][PATCH] Highlighting greenplum keywords in sql editor

От:
Dave Page <dpage@pgadmin.org>
Дата:
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

Re: [pgAdmin4][PATCH] Highlighting greenplum keywords in sql editor

От:
Akshay Joshi <akshay.joshi@enterprisedb.com>
Дата:


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 Zhang





--
Dave 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

Re: [pgAdmin4][PATCH] Highlighting greenplum keywords in sql editor

От:
Akshay Joshi <akshay.joshi@enterprisedb.com>
Дата:
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 Zhang





--
Dave 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



--
Akshay Joshi
Principal Software Engineer 


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