[Nitro] [BUG] bryan's og_manager_fix

Chris Farmiloe chris at motionpath.com
Mon Jan 30 07:40:31 EST 2006



Hiya Bryan:

Sorry my quick example may have been a little slapdash.

Here is a slightly neater version. the error is the postgres error:

Og.setup had problems: RuntimeError => ERROR   C42P01  Mrelation  
"ogclasstwo" does not existFnamespace.c    L201    RRangeVarGetRelid


ogclasstwo obveously shouldn't exist since it should be using table  
'ogclassone'

works without patch, not with.

Thanx



Chris Farmiloe
Design & Development.



On 27 Jan 2006, at 20:57, Bryan Soto wrote:

> Just to be sure, this is the error you were getting, right?
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> D, [2006-01-27T12:55:18.445983 #11232] DEBUG -- : PostgreSQL  
> processing foreign key constraints
> E, [2006-01-27T12:55:18.447358 #11232] ERROR -- : PostgreSQL  
> connection returned an error for query ALTER TABLE ogthing ADD  
> CONSTRAINT ogc_ogthing_class_two_oid FOREIGN KEY (class_two_oid)  
> REFERENCES ogclasstwo(oid) ON UPDATE SET NULL ON DELETE SET NULL
> E, [2006-01-27T12:55:18.447539 #11232] ERROR -- : Og.setup had  
> problems: PGError => ERROR:  column "class_two_oid" referenced in  
> foreign key constraint does not exist
>
> E, [2006-01-27T12:55:18.447618 #11232] ERROR -- : #<PGError:  
> ERROR:  column "class_two_oid" referenced in foreign key constraint  
> does not exist
> >
> E, [2006-01-27T12:55:18.447682 #11232] ERROR -- : ./og/lib/og/store/ 
> psql.rb:522:in `exec'
> ./og/lib/og/store/psql.rb:522:in `create_constraints'
> ./og/lib/og/store/psql.rb:519:in `create_constraints'
> ./og/lib/og/store/psql.rb:593:in `post_setup'
> ./og/lib/og/manager.rb:226:in `post_setup'
> ./og/lib/og.rb:129:in `setup'
> chris-test.rb:23
>
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060130/e6b3dfed/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sti_issue.rb.gz
Type: application/x-gzip
Size: 304 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20060130/e6b3dfed/attachment.gz 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060130/e6b3dfed/attachment-0001.html 


More information about the Nitro-general mailing list