Running on Windows Server 2003
I've got a table with ticket issues in it, each having its own status (of about 6 different status types). The most simple query
is called to return all non-closed status types. It's currently returning 0 results, but if I change the WHERE section to be <> "new", I'll get results. I checked reserved words, "closed" doesn't appear to be in there, and this query has worked on all other versions of MySQL up to 5. The odd thing is, by changing "closed" to one of the other status' , it worksCode:SELECT DISTINCT ticket_status FROM new_tickets WHERE ticket_status <> "closed" ORDER BY ticket_status ASC![]()
table structure:
Any ideas???Code:DROP TABLE IF EXISTS `ims`.`new_tickets`; CREATE TABLE `ims`.`new_tickets` ( `billable` varchar(5) default '', `ticket_unique_id` varchar(10) NOT NULL default '0', `ticket_status` varchar(25) NOT NULL default 'new', `new_ticket_date` date NOT NULL default '0000-00-00', `new_ticket_time` time NOT NULL default '00:00:00', `new_ticket_real_time` time NOT NULL default '00:00:00', `new_ticket_real_date` date NOT NULL default '0000-00-00', `ticket_tech` varchar(50) NOT NULL default '', `assigned_to` varchar(25) NOT NULL default '', `billed` varchar(5) NOT NULL default '', `client_unique_id` varchar(10) NOT NULL default '', PRIMARY KEY (`ticket_unique_id`), KEY `ticket_tech` (`ticket_tech`), KEY `ticket_status` (`ticket_status`), KEY `client_unique_id` (`client_unique_id`), KEY `ticket_unique_id` (`ticket_unique_id`), KEY `billable` (`billable`), KEY `assigned_to` (`assigned_to`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;








Bookmarks