Relational operators

From: Pieter-Jan Savat <pieterjan(dot)savat(at)barclab(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Relational operators
Date: 2005-06-27 10:38:51
Message-ID: 42BFD73B.8030109@barclab.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

I was wondering if the following issue is in fact a bug, or just
inconvenient behaviour...

say a table looks like this:

table
---
c (varchar)
'20'
'0'
'-10'
'klj'
'> 5'
'qwerty'
'< 6'

The query select * from table where c < 5 will return for instance the
tuple containing '20'.
In other words, postgresql 8.0 will not automatically cast the results
to a numeric value and only take into account those tuples that can be
cast (not 'klj' nor 'qwerty') ... unlike some other databases ....

Any (standard) solutions to this problem?

-greetz, pj

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Fuhr 2005-06-27 14:12:04 Re: process crash when a plpython function returns unicode
Previous Message satish reddy 2005-06-27 04:46:39 problem with unexpected error