Queries with 'AND' clauses not returning results

Поиск
Список
Период
Сортировка
От Jonathan Mast
Тема Queries with 'AND' clauses not returning results
Дата
Msg-id 85e352e10711261224h71092c7cvfe17df9653874dff@mail.gmail.com
обсуждение исходный текст
Ответы Re: Queries with 'AND' clauses not returning results
Список pgsql-jdbc
I have some jsp with calls to our pg database, and yes, I know this is
not the optimal way to do it, but we can't stop everything to
re-engineer our website to use Struts or whatever.

That said, the problem is that statements such as:
"SELECT * FROM tbl_someTable WHERE email='nobody@nowhere.com' ;
work fine

while statements like this don't work (no records returned):
"SELECT * FROM tbl_someTable WHERE email='nobody@nowhere.com' AND
password='abcd'";
And quoting the field 'password' doesn't make a difference.

I know such records actually exist because I'm printing out the query
on the webpage, copying it to pgAdmin and executing with results.

I have no idea why its not working.

specs:
Apache 1.3.33
Tomcat 5.5.17
postgresql 8.1.3

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

Предыдущее
От: vasylenko@uksatse.org.ua
Дата:
Сообщение: How to add data with ResultSet object?
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Queries with 'AND' clauses not returning results