Re: [HACKERS] 8.3 version of ts_headline

2007-09-18 Thread Teodor Sigaev
in 8.2 SELECT headline('default', 'a b c', 'c'::tsquery, E'StartSel=span class=\\style1\\, StopSel=/span'); In 8.2 this produces an error: SELECT headline('default', 'a b c', 'c'::tsquery, 'StartSel=span class=style1, StopSel=/span'); ERROR: syntax error -- Teodor Sigaev

Re: [HACKERS] 8.3 version of ts_headline

2007-09-18 Thread Andreas Joseph Krogh
On Tuesday 18 September 2007 17:15:43 Teodor Sigaev wrote: in 8.2 SELECT headline('default', 'a b c', 'c'::tsquery, E'StartSel=span class=\\style1\\, StopSel=/span'); In 8.2 this produces an error: SELECT headline('default', 'a b c', 'c'::tsquery, 'StartSel=span class=style1,

Re: [HACKERS] 8.3 version of ts_headline

2007-09-15 Thread Andreas Joseph Krogh
On Friday 14 September 2007 20:26:28 Tom Lane wrote: Andreas Joseph Krogh [EMAIL PROTECTED] writes: In 8.2 this produces an error: SELECT headline('default', 'a b c', 'c'::tsquery, 'StartSel=span class=style1, StopSel=/span'); ERROR: syntax error DETAIL: Syntax error in position 15.

[HACKERS] 8.3 version of ts_headline

2007-09-14 Thread Andreas Joseph Krogh
Hi. In 8.2 this produces an error: SELECT headline('default', 'a b c', 'c'::tsquery, 'StartSel=span class=style1, StopSel=/span'); ERROR: syntax error DETAIL: Syntax error in position 15. while this works: SELECT headline('default', 'a b c', 'c'::tsquery, 'StartSel=b, StopSel=/b'); headline

Re: [HACKERS] 8.3 version of ts_headline

2007-09-14 Thread Tom Lane
Andreas Joseph Krogh [EMAIL PROTECTED] writes: In 8.2 this produces an error: SELECT headline('default', 'a b c', 'c'::tsquery, 'StartSel=span class=style1, StopSel=/span'); ERROR: syntax error DETAIL: Syntax error in position 15. Sure you don't just need to quote the values?