phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-developers] proposal-branch; porting


From: Joseph Engo
Subject: Re: [Phpgroupware-developers] proposal-branch; porting
Date: Thu, 22 Apr 2004 14:04:34 -0400
User-agent: Mozilla Thunderbird 0.5 (Windows/20040207)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dan Kuykendall wrote:

| Joseph Engo wrote:
|
|> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
|>
|> | $GLOBALS['phpgw']->db->get_last_insert_id() | This is something
|> I need to add.  Its very easy to do for PostgreSQL, but MySQL is
|> more of a pain.  For now, I am just doing a select after I add
|> the record.  Which will be fixed later once get_last_insert_id()
|> is ported.  AdoDB doesn't, from what I understand have something
|> like this, or its something they removed over time for whatever
|> reason.
|
|
| Why do you think it was removed?
|
| http://phplens.com/lens/adodb/docs-adodb.htm#inserted_id


"PostgreSQL returns the OID, which can change on a database reload." -
The OID number is useless to an app developer, it doesn't return the
last insert ID like you think it would.  The OID number is a unique
number for every insert and update, which can be later referenced to
an action.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAiAkx/AzmiD/o0voRAqEeAKCjXdbJqk+WOIprkPDhy/3I+YjmdwCcDsbc
ss1mNjKOm/xT+3Z2I8rzWK4=
=93yS
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]