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)
Список
Дерево обсуждения
BUG #1905: When a column with the chkpass datatype is used in a where clause it returns invalid results "Trevor Tingey" <ttingey@gmail.com>
Re: BUG #1905: When a column with the chkpass datatype is used in a where clause it returns invalid results Tom Lane <tgl@sss.pgh.pa.us>
"Trevor Tingey" 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
Дата: