any ideas on this? google has not helped.

can temp tables be innodb? can they have fk?

mysql>
mysql> create temporary table bvolsetparents
    -> (
    ->  volset int not null,
    ->  ancestor int not null,
    ->  primary key (volset,ancestor),
    ->  foreign key (volset)   REFERENCES bvolset(id),
    ->  foreign key (ancestor) references bvolset(id)
    -> );
ERROR 1005: Can't create table 
'c:\docume~1\admini~1\locals~1\temp\#sql640_41_0.frm' (errno: 150)
mysql>
mysql> create table bvolsetparents
    -> (
    ->  volset int not null,
    ->  ancestor int not null,
    ->  primary key (volset,ancestor),
    ->  foreign key (volset)   REFERENCES bvolset(id),
    ->  foreign key (ancestor) references bvolset(id)
    -> );
Query OK, 0 rows affected (0.11 sec)

mysql>
mysql> drop table bvolsetparents;
Query OK, 0 rows affected (0.07 sec)

mysql> create temporary table bvolsetparents
    -> (
    ->  volset int not null,
    ->  ancestor int not null,
    ->  primary key (volset,ancestor),
    ->  foreign key (volset)   REFERENCES bvolset(id),
    ->  foreign key (ancestor) references bvolset(id)
    -> ) engine=innodb;
ERROR 1005: Can't create table 
'c:\docume~1\admini~1\locals~1\temp\#sql640_41_1.frm' (errno: 150)
mysql> create temporary table bvolsetparents
    -> (id int);
Query OK, 0 rows affected (0.48 sec)

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Partner & Sr. Manager             7 West 24th Street #100     -
- +1 (443) 921-0381                 Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to