Re: create and insert

[prev] [thread] [next] [Date index for 2005/01/23]

From: Perrin Harkins
Subject: Re: create and insert
Date: 00:18 on 23 Jan 2005
Peter Speltz wrote:

> --- Perrin Harkins <perrin@xxxx.xxx> wrote:
>>You can add to an existing object and then update() it, but you have to 
>>already have a primary key.
>>
> 
> 
> Is that what Alex is  doing?

No, which is why it isn't working for him.  He is making broken objects 
with no primary key, that CDBI should prevent.

> To me it seems  he is getting data from
> scaninterface and making an Interface object out of it. He doesn't even have a
> Scaninterface CDBI class. 
> ($obj_new_interface) = NAC::Interface->search_from_scan(..); # sql_from_scan
> retrieves data only from scaninterface table. 

Right, and that would actually work if his scaninterface table had the 
same primary key, but it doesn't, so he ends without a primary key in 
hos objects.

- Perrin

(message missing)

create and insert
Hartmaier Alexander 16:00 on 20 Jan 2005

Re: create and insert
Dana Hudes 16:06 on 20 Jan 2005

Re: create and insert
Hartmaier Alexander 16:24 on 20 Jan 2005

Re: create and insert
Jay Strauss 17:45 on 20 Jan 2005

Re: create and insert
Perrin Harkins 18:46 on 20 Jan 2005

Re: create and insert
Jay Strauss 19:33 on 20 Jan 2005

Re: create and insert
Perrin Harkins 19:51 on 20 Jan 2005

Re: create and insert
Jay Strauss 17:39 on 20 Jan 2005

Re: create and insert
Peter Speltz 17:53 on 20 Jan 2005

Re: create and insert
Peter Speltz 18:06 on 20 Jan 2005

Re: create and insert
Hartmaier Alexander 09:40 on 21 Jan 2005

Re: create and insert
Jay Strauss 15:41 on 21 Jan 2005

Re: create and insert
Perrin Harkins 19:35 on 21 Jan 2005

Re: create and insert
Peter Speltz 05:50 on 22 Jan 2005

Re: create and insert
Perrin Harkins 17:19 on 22 Jan 2005

Re: create and insert
Peter Speltz 17:43 on 22 Jan 2005

Re: create and insert
Perrin Harkins 19:09 on 22 Jan 2005

Re: create and insert
Peter Speltz 22:22 on 22 Jan 2005

Re: create and insert
Perrin Harkins 00:18 on 23 Jan 2005

Re: create and insert
Hartmaier Alexander 14:07 on 24 Jan 2005

Re: create and insert
William McKee 16:15 on 24 Jan 2005

Re: create and insert
Peter Speltz 16:28 on 24 Jan 2005

Re: create and insert
Hartmaier Alexander 16:38 on 24 Jan 2005

Generated at 17:42 on 27 Jan 2005 by mariachi v0.52