Re: Bug or stupidity

Поиск
Список
Период
Сортировка
От Thomas Hallgren
Тема Re: Bug or stupidity
Дата
Msg-id cljbr0$rrr$1@sea.gmane.org
обсуждение исходный текст
Ответ на Re: Bug or stupidity  (Steven Klassen <sklassen@commandprompt.com>)
Ответы Re: Bug or stupidity  (Steven Klassen <sklassen@commandprompt.com>)
Re: Bug or stupidity  (Mike Mascari <mascarm@mascari.com>)
Список pgsql-general
Steven,

 > That assumes that developers will implement queries in their code
 > without testing them. Unfortunately, that's probably not too far from
 > reality. I've thought of it as a nice "debugging" feature while I'm
 > trying to hammer out a complicated query for the first time.


I don't see how that makes a difference really. As a developer, I'd
rather prefer if I get an explanatory error result rather than a notice
(often invisible) and an incorrect result when testing. If I don't test
at all (God forbid) I want the same thing to happen the first time the
code is deployed. Anything else is really scary. I don't see how it can
be the dbms responsibility to correct erroneous SQL ever. It's
comparable to having a compiler that magically adds undeclared (or
misspelled) variables in your code. Shrug...

Is the variable settable in a session? If so, that would be good for the
purpose you mention.

Regards,
Thomas Hallgren

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: FKs and deadlocks
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: PgSQL MVCC vs MySQL InnoDB