Re: [BUGS] Substring function incorrect when searching for '@.'

2004-10-12 Thread Tom Lane
"Mike G." <[EMAIL PROTECTED]> writes: > create a table with a data type of varchar (50) and name it email > insert into this table the following values: > [EMAIL PROTECTED] > Execute the following statement: > SELECT CASE WHEN count(substring(email FROM '@.')) > 0 THEN count(substring(email > F

[BUGS] Substring function incorrect when searching for '@.'

2004-10-12 Thread Mike G.
To reproduce: create a table with a data type of varchar (50) and name it email insert into this table the following values: [EMAIL PROTECTED] Execute the following statement: SELECT CASE WHEN count(substring(email FROM '@.')) > 0 THEN count(substring(email FROM '@.')) ELSE 0 END, email FROM y