Sqlstatement with !=-1 fails - Mailing list pgsql-general

From Dave Cramer
Subject Sqlstatement with !=-1 fails
Date
Msg-id 005701c150d4$bead6cd0$8201a8c0@inspiron
Whole thread Raw
In response to Re: ERROR: cannot insert duplicate... on VACUUM ANALYZE  (Jon Lapham <lapham@extracta.com.br>)
List pgsql-general
Hello,

I get the following error

pl=# select * from person where id !=-1;
ERROR:  Unable to identify an operator '!=-' for types 'int8' and 'int4'
        You will have to retype this query using an explicit cast

pl=# select * from person where id =-1;
 id | name | last_update_time
----+------+------------------
(0 rows)

However this works fine

pl=# select * from person where id != -1;

This looks like a parser error, note the space added in the select that
works ??

Dave


pgsql-general by date:

Previous
From: mmacie@earthlink.net (Mike Judkins)
Date:
Subject: kinda newbie - ish question
Next
From: Kevin HaleBoyes
Date:
Subject: triggers