You are here: Re: [PHP] PHP, exception and PostgreSQL « PHP « IT news, forums, messages
Re: [PHP] PHP, exception and PostgreSQL

Posted by Richard Lynch on 02/07/05 20:13

Konference wrote:
> is here somebody who works with PostgreSQL in PHP?

Yes. :-)

> I have a PL/SQL
> function, which can raise an exception. I am not able to catch _only_
> exception error message in PHP. I can parse "Warning: pg_query():
> Query failed: ERROR: Exception error string. in..." but I think, it is
> not "clear" solution. Thank you for your reply.

Open up an SSH shell and use the PostgreSQL monitor program:

psql -U __YOUR_USERNAME__ __YOUR_DB_NAME__

You'll be prompted for the password.

Then you can do:
\df+ __FUNCTION_NAME__

to see the full definition of your function.

Post that here, and maybe somebody can tell you what is wrong with it.

Another possibility, while you're in psql, is to go ahead and try to call
the function with some sample data.

--
Like Music?
http://l-i-e.com/artists.htm

 

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

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