Обсуждение: Since I can't seem to unsubscribe to this mailing list, I might as well report a bug...
Since I can't seem to unsubscribe to this mailing list, I might as well report a bug...
От
hushthatbush@hushmail.com
Дата:
When working in the SQL query window in pgAdmin, keeping it open for the whole day, I sometimes notice that it will randomlytell me that I have a syntax error somewhere in it when I run it, without having changed anything. If I just clicksomewhere else inside the window, such as placing the marker in the end of the query, and execute it again, it willrun. So without any actual changes, it runs/doesn't run. Is this known? Why does it happen? How can it be possible? And so on. (No, I cannot reliably reproduce this. I don't even know when it happens. I just know it does happen, and has happened formany versions of pgAdmin over the years.)
Re: Since I can't seem to unsubscribe to this mailing list, I might as well report a bug...
От
Melvin Davidson
Дата:
I can't really say whether it is a "known problem" or not, but I can tell you that keeping the SQL query window "open for the whole day" is definitely NOT A GOOD IDEA. Aside for the obvious case where someone else could possibly access your computer and do nasty things when you are not watching, there is also the possibility of power glitches and accidentally hitting the keystrokes .
So I can only caution you to do the prudent thing and only open the SQL window when you have to do transactions/queries and close it when you are done. It really doesn't take that long to open or close.
Melvin Davidson
Cell 720-320-0155
Folk Alley - All Folk - 24 Hours a day
www.folkalley.com
Cell 720-320-0155
Folk Alley - All Folk - 24 Hours a day
www.folkalley.com
From: "hushthatbush@hushmail.com" <hushthatbush@hushmail.com>
To: "pgadmin-support@postgresql.org" <pgadmin-support@postgresql.org>
Sent: Wednesday, February 11, 2015 4:03 PM
Subject: [pgadmin-support] Since I can't seem to unsubscribe to this mailing list, I might as well report a bug...
When working in the SQL query window in pgAdmin, keeping it open for the whole day, I sometimes notice that it will randomly tell me that I have a syntax error somewhere in it when I run it, without having changed anything. If I just click somewhere else inside the window, such as placing the marker in the end of the query, and execute it again, it will run. So without any actual changes, it runs/doesn't run.
Is this known? Why does it happen? How can it be possible? And so on.
(No, I cannot reliably reproduce this. I don't even know when it happens. I just know it does happen, and has happened for many versions of pgAdmin over the years.)
--
Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-support
Re: Since I can't seem to unsubscribe to this mailing list, I might as well report a bug...
От
Robins Tharakan
Дата:
On 12 February 2015 at 02:33, <hushthatbush@hushmail.com> wrote:
I sometimes notice that it will randomly tell me that I have a syntax error somewhere in it when I run it, without having changed anything. If I just click somewhere else inside the window, such as placing the marker in the end of the query, and execute it again, it will run.
I have a good feeling that this is because the times when it gives 'syntax error' either by mistake or unknown to you, the SQL query window has something selected (by mouse / shift + arrow keys) and then (by design) PgAdmin runs just that piece of text. In most cases the obvious error would be Syntax Error since now its a partial SQL being sent off to the PG database... "if" this is happeneing, this is by-design and a 'feature'. In fact most common SQL query consoles (GUI) happen to work like this.
--
Robins Tharakan
Re: Since I can't seem to unsubscribe to this mailing list, I might as well report a bug...
От
hushthatbush@hushmail.com
Дата:
Whoa. That's actually quite scary since I had no idea about it. What if I had selected only the "DELETE FROM table" from"DELETE FROM table WHERE id = 123"?! Now I have to worry about having done that (or something similar) in the past. :/ On 2015-02-12 at 10:23 AM, "Robins Tharakan" <tharakan@gmail.com> wrote: > >On 12 February 2015 at 02:33, <hushthatbush@hushmail.com> wrote: > >> I sometimes notice that it will randomly tell me that I have a >syntax >> error somewhere in it when I run it, without having changed >anything. If I >> just click somewhere else inside the window, such as placing the >marker in >> the end of the query, and execute it again, it will run. > > > >I have a good feeling that this is because the times when it >gives 'syntax >error' either by mistake or unknown to you, the SQL query window >has >something selected (by mouse / shift + arrow keys) and then (by >design) >PgAdmin runs just that piece of text. In most cases the obvious >error would >be Syntax Error since now its a partial SQL being sent off to the >PG >database... "if" this is happeneing, this is by-design and a >'feature'. In >fact most common SQL query consoles (GUI) happen to work like this. > >-- >Robins Tharakan
Re: Since I can't seem to unsubscribe to this mailing list, I might as well report a bug...
От
Robins Tharakan
Дата:
On 12 February 2015 at 15:18, <hushthatbush@hushmail.com> wrote:
Whoa. That's actually quite scary since I had no idea about it. What if I had selected only the "DELETE FROM table" from "DELETE FROM table WHERE id = 123"?! Now I have to worry about having done that (or something similar) in the past. :/
Isn't that how the world works?
SSMS (MS SQL Server) and Aqua Data Studio work like this for sure.. just like PgAdmin. I guess we'd need to be careful what 'gets run' when the UI allows this.
SSMS (MS SQL Server) and Aqua Data Studio work like this for sure.. just like PgAdmin. I guess we'd need to be careful what 'gets run' when the UI allows this.
--
Robins Tharakan