bug? - Mailing list pgsql-general

From Chris Picton
Subject bug?
Date
Msg-id 3A0BD408.48B8ACDA@usko.com
Whole thread Raw
List pgsql-general
Hi

I have the following two queries:

1) select count(*) from mappings where substring(virtual from 1 for 1) = '@';
2) select count(*) from mappings where virtual like '@%';

both should do the same thing - give me a count of virtual which starts with '@'.

however, the results returned are different

Statement 1 returns 12
Statement 2 returns 2623

Is there an error in my tables?  If so, how would I fix it?

Regards

--
Chris Picton
Usko Communications Systems Developer
Chris.Picton@usko.com

pgsql-general by date:

Previous
From: Radoslaw Stachowiak
Date:
Subject: strange behvaviour in join? BUG in 7.02?
Next
From: Roger Wernersson
Date:
Subject: Semaphores was: Increasing the number of semaphores on FreeBSD 4. 1 (clarification)