Go Back   NexusDB Newsgroups > Support Newsgroups > nexusdb.public.support.sql
Log in
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Thread Tools Display Modes
  #1  
Old 5th May 2007, 06:59 AM
Ad Franse
 
Posts: n/a
Default Why ? The table "folder" cannot be dropped. It is referred to from the table "mail"

Why can't I understand this?
Ad Franse

NexusDB: Query26344411: Query execution failed:
Unexpected exception object raised: [Exception] The table "folder" cannot be
dropped. It is referred to from the table "mail" [$3CA1/15521]


create a new database,
execute the following code in EM 2.06.01 with server 2.06.01 or 2.06.02
(dayly 04.05.2007)


drop table if exists folder;
create table folder
(
folder_id autoinc primary key
);

drop table if exists mail;
drop table if exists mail_folder;
create table mail_folder
(
mail_folder_id autoinc primary key
);

drop table if exists mail;
create table mail
(
mail_id autoinc primary key,
mail_folder_id integer references mail_folder
(mail_folder_id)
);


  #2  
Old 5th May 2007, 08:03 AM
Thorsten Engler
 
Posts: n/a
Default Re: Why ? The table "folder" cannot be dropped. It is referred to from the table "mail"

Ad Franse wrote:

> Why can't I understand this?
> Ad Franse
>
> NexusDB: Query26344411: Query execution failed:
> Unexpected exception object raised: [Exception] The table "folder"
> cannot be dropped. It is referred to from the table "mail"
> [$3CA1/15521]


There is referential integrity in place linking folder and mail. It
needs to be removed first.

--

  #3  
Old 5th May 2007, 05:22 PM
Ad Franse
 
Posts: n/a
Default Re: Why ? The table "folder" cannot be dropped. It is referred to from the table "mail"


>> NexusDB: Query26344411: Query execution failed:
>> Unexpected exception object raised: [Exception] The table "folder"
>> cannot be dropped. It is referred to from the table "mail"
>> [$3CA1/15521]

>
> There is referential integrity in place linking folder and mail. It
> needs to be removed first.


Yes, that's what I understand.

this is folder :

create table folder
(
folder_id autoinc primary key
);

this is mail:

create table mail
(
mail_id autoinc primary key,
mail_folder_id integer references mail_folder
(mail_folder_id)
);

I think that it is referring to mail_folder not folder what do you think ?

Ad Franse


  #4  
Old 5th May 2007, 07:37 PM
Eivind Bakkestuen [NDD]
 
Posts: n/a
Default Re: Why ? The table "folder" cannot be dropped. It is referred to from the table "mail"

> Unexpected exception object raised: [Exception] The table "folder"
> cannot be dropped. It is referred to from the table "mail"
> [$3CA1/15521]


Yeah, something is wrong here, issue #2431.

--

Eivind Bakkestuen
Nexus Database Systems Pty Ltd


  #5  
Old 11th May 2007, 06:02 AM
Ad Franse
 
Posts: n/a
Default Re: Why ? The table "folder" cannot be dropped. It is referred to from the table "mail"

I confirm that today's snapshot solves this problem.
Thanks !

Ad


"Eivind Bakkestuen [NDD]" <Ieivind.bakkestuenHATE@nexusdb.comSPAM> wrote in
message news:463c447c@wic040d....
>> Unexpected exception object raised: [Exception] The table "folder"
>> cannot be dropped. It is referred to from the table "mail"
>> [$3CA1/15521]

>
> Yeah, something is wrong here, issue #2431.
>
> --
>
> Eivind Bakkestuen
> Nexus Database Systems Pty Ltd
>





Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot open Table "@Table" airslash nexusdb.public.support.adoprovider 6 20th February 2010 06:17 PM
Unable to Resolve Identifier "O"."ProspRef" Ken Randall nexusdb.public.support.sql 4 30th January 2007 04:56 AM
2.0.599r3: Query that should work returns Unable to resolve the identifier"#t1"."ContratoId" =?ISO-8859-1?Q?=22Rodrigo_G=F3mez_=5BNDX=5D=22?= nexusdb.public.support.sql 2 4th November 2006 12:03 PM
SQL query to search on a field that is "similar to a set" or "mask"? J Tabor nexusdb.public.support.sql 2 10th May 2006 02:20 PM
Announcment! "The Keep" ver 2.0.0.1 and "Po Boy Application LifeCycle Management Utility" ver 1.0.0.l are now both available for free download! Robert Meek nexusdb.public.support.thirdparty 1 11th July 2004 10:23 AM


All times are GMT +11. The time now is 11:49 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.