You are here: Re: Oracle/PHP problem « PHP Programming Language « IT news, forums, messages
Re: Oracle/PHP problem

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация