[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mysql
Subject:    query crashes 4.03 every time
From:       "Matthew Mullenweg" <matt () mullenweg ! com>
Date:       2002-08-31 19:41:27
[Download RAW message or body]

Here is the evil query:
SELECT DISTINCT * FROM b2posts WHERE 1=1 AND ID = 124 AND ((post_title
LIKE '%%') OR (post_content LIKE '') OR (post_title LIKE '%%') OR
(post_content LIKE '%%')) AND post_date < '2002-08-31 14:31:55' AND
post_category > 0 ORDER BY post_date DESC

Here's a structure dump of the table it's trying to select from:
CREATE TABLE b2comments (
  comment_ID int(11) unsigned NOT NULL auto_increment,
  comment_post_ID int(11) NOT NULL default '0',
  comment_author tinytext NOT NULL,
  comment_author_email varchar(100) NOT NULL default '',
  comment_author_url varchar(100) NOT NULL default '',
  comment_author_IP varchar(100) NOT NULL default '',
  comment_date datetime NOT NULL default '0000-00-00 00:00:00',
  comment_content text NOT NULL,
  comment_karma int(11) NOT NULL default '0',
  PRIMARY KEY  (comment_ID)
) TYPE=MyISAM;

This is my first time posting to the list, so do you need any more
information? I'll be happy to provide any other information needed, PHP
or SQL code, etcetera.

--Matt


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <mysql-thread118496@lists.mysql.com>
To unsubscribe, e-mail <mysql-unsubscribe-mysql=progressive-comp.com@lists.mysql.com>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic