Re: Duplicate column error when creating view on 5.0.13

2005-10-09 Thread Terence
[EMAIL PROTECTED] wrote: Does this make better sense? Yes, many thanks and regards, Terence -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Duplicate column error when creating view on 5.0.13

2005-10-07 Thread SGreen
Terence <[EMAIL PROTECTED]> wrote on 10/07/2005 03:49:46 AM: > Hi All, > > I get a duplicate column error on 5.0.13 when creating a view. Am I > doing something wrong here or do I submit a bug report? This should be > allowed as the col names > are not duplicated. > > Reproduce: > > create ta

Re: Duplicate column error when creating view on 5.0.13

2005-10-07 Thread Johan Höök
Hi Terence, I guess I was a bit unclear on my comment on the SELECT *. Anyway you did what I meant, i.e. changed one of your category_id's so that the set of columnnames ( as implied by the SELECT * ) becomes unique. What happens is that your SELECT * becomes SELECT ticket_id,category_id,category_

Re: Duplicate column error when creating view on 5.0.13

2005-10-07 Thread Martijn Tonies
> > I think your problem lies in your SELECT * > > If you look at the columnheaders below you get category_id twice. > > I guess you have to specify your columns with aliases. > > > > /Johan > > > > Hi Johan, > > Nope, if I change the column name to category_id1 then it's okay. See > this: (apolog

Re: Duplicate column error when creating view on 5.0.13

2005-10-07 Thread Terence
Johan Höök wrote: Hi Terence, I think your problem lies in your SELECT * If you look at the columnheaders below you get category_id twice. I guess you have to specify your columns with aliases. /Johan Hi Johan, Nope, if I change the column name to category_id1 then it's okay. See this: (ap

Re: Duplicate column error when creating view on 5.0.13

2005-10-07 Thread Johan Höök
Hi Terence, I think your problem lies in your SELECT * If you look at the columnheaders below you get category_id twice. I guess you have to specify your columns with aliases. /Johan SELECT * FROM ticket_master tm, category_master cm WHERE tm.category_id = cm.category_id; +---+

Duplicate column error when creating view on 5.0.13

2005-10-07 Thread Terence
Hi All, I get a duplicate column error on 5.0.13 when creating a view. Am I doing something wrong here or do I submit a bug report? This should be allowed as the col names are not duplicated. Reproduce: create table `ticket_master` ( `ticket_id` int (5) NOT NULL AUTO_INCREMENT , `category_id