Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Database/World Building

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-23-2006, 08:07 AM
lolzownz
Fire Beetle
 
Join Date: Jan 2004
Posts: 5
Default mysql use of AND statement question

I'm using Diablo like loot maker ver 1.3.2 from http://66.159.225.58/eqemu/eq.html and I
Reply With Quote
  #2  
Old 12-23-2006, 01:00 PM
RangerDown
Demi-God
 
Join Date: Mar 2004
Posts: 1,066
Default

Check to see if it's a known bug for the version of mysql you're using. (mysql forums or googling might get you that answer) I have been witness to a bug in mysql's logic once before so it's not totally out of the question that this is just a bug too.
__________________
<idleRPG> Rogean ate a plate of discounted, day-old sushi. This terrible calamity has slowed them 0 days, 15:13:51 from level 48.
Reply With Quote
  #3  
Old 12-24-2006, 07:06 AM
GeorgeS
Forum Guide
 
Join Date: Sep 2003
Location: California
Posts: 1,474
Default

I looked at this in more detail - using AND's and OR's...

I added brackets when using OR's so they take precedence over AND's. I added this to the recent code and it's available for download now.

Thanks for pointing this out.

btw - when using sql using or's and and's use
(a=1 OR a=2) AND b=3 AND b=4

GeorgeS
__________________
Your source for EQ database tools
Toolshop is open for business


http://www.georgestools.chrsschb.com//
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:21 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3