| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Oracle/PHP problem
andy_at_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?
>
>
Received on Tue Feb 28 2006 - 16:27:38 CST
![]() |
![]() |