You are here: Re: Returning the id of an inserted row when using DB_DataObject->insert() with postgresql « PHP Programming Language « IT news, forums, messages
Re: Returning the id of an inserted row when using DB_DataObject->insert() with postgresql

Posted by Rik Wasmus on 11/19/07 19:09

On Mon, 19 Nov 2007 19:48:18 +0100, Sam <sgronblo@gmail.com> wrote:

> Recently started using DB_DataObject with a Postgresql DB. Seems
> pretty nice, but I am not sure if insert() is supposed to be able to
> return the id of a recently returned object. It just seems to return 1
> for me. I'm not really sure if DataObject gets confused because it
> would like to create the sequences itself which have been created for
> me automatically because I created the primary keys as serials. Or
> something like that. Would at least like to hear if it's supposed to
> work so I know if it's my fault that it's not working.

http://pear.php.net/manual/en/package.database.db-dataobject.db-dataobject.insert.php
http://pear.php.net/manual/en/package.database.db.intro-sequences.php
--
Rik Wasmus

 

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

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