Re: [GENERAL] Comparing fixed precision to floating

2001-08-22 Thread Barry Lind
FYI -- JDBC questions should go to the pgsql-jdbc mail list. As for your problem, I think probably the easiest workaround is to explicitly cast your constants. Assuming you are using PreparedStatements, a statement of the following form should work: select * from foo where bar = ?::numeric W

[GENERAL] Comparing fixed precision to floating

2001-08-21 Thread Mike Finn
I am using numeric(p,s) fields in a database schema. Using queries that contain a comparison like ... where numericField = 456.789 will generate an error Unable to identify an operator '=' for types 'numeric' and 'float8' You will have to retype this query using an explic