Re: [HACKERS] possible replace() bug - postgres 7.3.1

2003-11-09 Thread Joe Conway
Hannu Krosing wrote: Ryan Mahoney kirjutas N, 06.11.2003 kell 23:03: I am running PostgreSQL 7.3.1 on i686-pc-linux-gnu, compiled by GCC 2.96 what does just SELECT replace(data, '\'', '\'\'') FROM temp_sales_lead ORDER BY id, row LIMIT 10; produce ? There was a bug in replace(), fixed by Tom

Re: [HACKERS] possible replace() bug - postgres 7.3.1

2003-11-09 Thread Hannu Krosing
Ryan Mahoney kirjutas N, 06.11.2003 kell 23:03: > I am running PostgreSQL 7.3.1 on i686-pc-linux-gnu, compiled by GCC 2.96 > > the following query fails: > > SELECT 'UPDATE pa_sales_lead SET details = COALESCE(details, \'\') || > \'' || replace(data, '\'', '\'\'') || '\' WHERE foreign_sales_lead_

[HACKERS] possible replace() bug - postgres 7.3.1

2003-11-09 Thread Ryan Mahoney
I am running PostgreSQL 7.3.1 on i686-pc-linux-gnu, compiled by GCC 2.96 the following query fails: SELECT 'UPDATE pa_sales_lead SET details = COALESCE(details, \'\') || \'' || replace(data, '\'', '\'\'') || '\' WHERE foreign_sales_lead_id = \'' || id || '\';' FROM temp_sales_lead ORDER BY id, ro