Forums » Beta

Thread: Explain plan display error.

This question is not answered. Helpful answers available: 2. Answered answers available: 1.


Permlink Replies: 1 - Pages: 1 - Last Post: Aug 10, 2011 10:53 AM by: Mauritz
bfs_921

Posts: 1
Registered: 7/1/11
Explain plan display error.
Posted: Aug 10, 2011 1:25 AM
 
  Click to reply to this thread Reply

Toad can't display explain plan with ID column NULL.

Error "Error
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints."

Problem row from MySQL console
+----+--------------+-------------------+--------+-----------------------------+---------+---------+----------------------------------------------------+---------+---------------------------------+
| id | select_type  | table             | type   | possible_keys               | key     | key_len | ref                                                | rows    | Extra                           |
+----+--------------+-------------------+--------+-----------------------------+---------+---------+----------------------------------------------------+---------+---------------------------------+
| NULL | UNION RESULT | <union2,6>        | ALL    | NULL                        | NULL    | NULL    | NULL                                               |    NULL |                                 |




Mauritz

Posts: 314
Registered: 8/23/07
Re: Explain plan display error.
Posted: Aug 10, 2011 10:53 AM   in response to: bfs_921
 
  Click to reply to this thread Reply

Any chance that you could post the create table script of the table(s) and the query you are trying to describe so that we can replicate this issue?



Legend
Guru: 2001 + pts
Expert: 751 - 2000 pts
Enthusiast: 31 - 750 pts
Novice: 0 - 30 pts
Moderators
Helpful answer (5 pts)
Answered (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums