Re: BUG #1905: When a column with the chkpass datatype is used in a where clause it returns invalid results

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1905: When a column with the chkpass datatype is used in a where clause it returns invalid results
Дата
Msg-id 3974.1127487709@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #1905: When a column with the chkpass datatype is used in a where clause it returns invalid results  ("Trevor Tingey" <ttingey@gmail.com>)
Список pgsql-bugs
"Trevor Tingey" <ttingey@gmail.com> writes:
> I ran the following queries and got unexpected results:

> UPDATE Account
> SET "Password" = 'password1'
> WHERE "AccountName" = 'Trevor'

> SELECT *
> FROM Account
> WHERE "AccountName" = 'Trevor'
> AND "Password" = 'password2'

> (I ran them individually)

> The Select query unexpectedly returned a result.

This is not a bug --- chkpass limits passwords to 8 significant
characters, so the above two values are in fact equal so far as
the datatype is concerned.

(The documentation probably ought to point that out...)

            regards, tom lane

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

Предыдущее
От: "Trevor Tingey"
Дата:
Сообщение: BUG #1905: When a column with the chkpass datatype is used in a where clause it returns invalid results
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: CVS Head: Pg_ctl bug?