Re: [GENERAL] blank in query - cannot return results

2015-10-08 Thread David G. Johnston
On Thu, Oct 8, 2015 at 3:54 PM, Emi wrote: > But run: >> select * from table_name where col1 ilike '%Abc,%test%'; -- remove blank >> >> Result is returned. >> > ​It works. WITH vals (v) AS ( VALUES ('Abc, test'::text) ) SELECT * FROM vals WHERE v ILIKE '%Abc, test%'​ If you are expecting a ma

Re: [GENERAL] blank in query - cannot return results

2015-10-08 Thread Adrian Klaver
On 10/08/2015 12:51 PM, Emi wrote: Hello, PostgreSQL 8.3.18 on x86_64-linux-gnu, query: select * from table_name where col1 ='Abc, test'; select * from table_name where col1 ilike '%Abc, test%'; NO result returned. Well without an indication of what the value in col1 is this is not goi

Re: [GENERAL] blank in query - cannot return results

2015-10-08 Thread Emi
Hello, PostgreSQL 8.3.18 on x86_64-linux-gnu, query: select * from table_name where col1 ='Abc, test'; select * from table_name where col1 ilike '%Abc, test%'; NO result returned. But run: select * from table_name where col1 ilike '%Abc,%test%'; -- remove blank Result is returned.

[GENERAL] blank in query - cannot return results

2015-10-08 Thread Emi
Hello, PostgreSQL 8.3.18 on x86_64-linux-gnu, query: select * from table_name where col1 ='Abc, test'; select * from table_name where col1 ilike '%Abc, test%'; NO result returned. But run: select * from table_name where col1 ilike '%Abc,%test%'; -- remove blank Result is returned.