Thanks a lot Tom,
Tom Lane wrote:
>
> Tim Pizey <[EMAIL PROTECTED]> writes:
> We have had some discussions about teaching the parser to be smarter
> about choosing the type of numeric constants depending on context,
> but for now you need to force the issue:
>
> select id from chapter where textid = 9057599501::int8;
>
> If you want the index to be used then you'd better do this all the
> time, not only for values that are too big to be int4.
>
This problem is actually happening through jdbc, using
PreparedStatements,
shouldn't jdbc be able to deal with casting transparently?
I am calling this with a string "chapter = ?" which automatically quotes
and escapes string values correctly.
Hope this isn't too wrong
timp
--
Member of http://www.paneris.org/
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly