Re: [pgAdmin4][Patch]: Fix the logic to extract the error in Query tool

2017-09-20 Thread Dave Page
Thanks - applied! On Tue, Sep 19, 2017 at 8:55 AM, Murtuza Zabuawala < murtuza.zabuaw...@enterprisedb.com> wrote: > Hi Dave, > > Please find updated patch, I have tested following scenarios in query tool, > 1) To test if we highlight faulty syntax > SQL: select a from pg_roles; > > 2) To check du

Re: [pgAdmin4][Patch]: Fix the logic to extract the error in Query tool

2017-09-19 Thread Murtuza Zabuawala
Hi Dave, Please find updated patch, I have tested following scenarios in query tool, 1) To test if we highlight faulty syntax SQL: select a from pg_roles; 2) To check duplicates in error messages. - Open query tool - Uncheck Auto-Commit and run below sql 3 times and you will get an error SQL: sel

Re: [pgAdmin4][Patch]: Fix the logic to extract the error in Query tool

2017-09-18 Thread Dave Page
Hi On Mon, Sep 18, 2017 at 3:08 PM, Murtuza Zabuawala < murtuza.zabuaw...@enterprisedb.com> wrote: > Hi Dave, > > Sorry my bad, I didn't check the backend code, I assumed that it is coming > from psycopg2 and so I was focusing it to remove from client side :( > > PFA updated patch. > I think it

Re: [pgAdmin4][Patch]: Fix the logic to extract the error in Query tool

2017-09-18 Thread Murtuza Zabuawala
Hi Dave, Sorry my bad, I didn't check the backend code, I assumed that it is coming from psycopg2 and so I was focusing it to remove from client side :( PFA updated patch. -- Regards, Murtuza Zabuawala EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company On Mon, Sep 18,

Re: [pgAdmin4][Patch]: Fix the logic to extract the error in Query tool

2017-09-18 Thread Dave Page
Hi On Mon, Sep 18, 2017 at 2:20 PM, Murtuza Zabuawala < murtuza.zabuaw...@enterprisedb.com> wrote: > Hi Dave, > > Please disregard my previous patch and instead attaching updated patch. > > In my previous patch I used `let` keyword instead of `var` for defining > variable, for consistency & backw

Re: [pgAdmin4][Patch]: Fix the logic to extract the error in Query tool

2017-09-18 Thread Murtuza Zabuawala
Hi Dave, Please disregard my previous patch and instead attaching updated patch. In my previous patch I used `let` keyword instead of `var` for defining variable, for consistency & backward compatibility I have used `var` in my latest patch. -- Regards, Murtuza Zabuawala EnterpriseDB: http://www

Re: [pgAdmin4][Patch]: Fix the logic to extract the error in Query tool

2017-09-18 Thread Murtuza Zabuawala
Hi Dave, PFA patch. On Mon, Sep 18, 2017 at 4:34 PM, Dave Page wrote: > Hi > > On Mon, Sep 18, 2017 at 10:54 AM, Murtuza Zabuawala enterprisedb.com> wrote: > >> Hi, >> >> PFA minor patch to fix the issue where logic to extract the error using >> RegEX from error message was incorrect in Query

Re: [pgAdmin4][Patch]: Fix the logic to extract the error in Query tool

2017-09-18 Thread Dave Page
Hi On Mon, Sep 18, 2017 at 10:54 AM, Murtuza Zabuawala < murtuza.zabuaw...@enterprisedb.com> wrote: > Hi, > > PFA minor patch to fix the issue where logic to extract the error using > RegEX from error message was incorrect in Query tool(History tab). > RM#2700 > Thanks - applied, but - Coul