|
Posted by Geoff Muldoon on 03/01/06 00:27
andy@andyh.co.uk says...
> My initial thought is NLS issues - implicit conversions somewhere in the view?
Bingo.
Although in my PHP code I always use explicit (to_date) date conversion in
any SQL, it appears that querying a view that has been successfully
compiled using implicit date conversion causes the problem.
Odd that PHP and/or AdoDB and/or OCI appears to be attempting to
"revalidate" the view when simply selecting from it. Don't know if this
is version specific or even at what stage (PHP/AdoDb/OCI/Oracle Client)
it's kicking in.
Just recompiled the view with explicit date conversion and moving on, no
time to chase further.
Thanks Andy and Erwin for your pointers, owe you one.
Geoff
> ORA-01858 is thrown by date conversions - don't think anything else throws
> that, IIRC.
>
> What's NLS_DATE_FORMAT set to?
>
> What's the definition of the view?
>
> When you queried the table directly, did you use *exactly* the same SQL as the
> view definition?
>
>
Navigation:
[Reply to this message]
|