Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 10-25-2008, 06:28 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

That's the problem with using MySQL line numbers to identify data instead of IDs, they will change. If you insert new lines on the fly, it will just tack them on the end. But, the next time the server lists the data, it will in this case order by skill_id. A simple test:

Clear the index:

Code:
SET @line = 0;
Then, output the line numbers in reference to skill_id:

Code:
SELECT @line := @line + 1, skill_id FROM altadv_vars;
Maybe need to put a limit on, I did. Insert new AAs. Run the above query again, they *should* be tacked on the end. Clear the index with the first query, and then run the second query again. You'll notice, they will all be ordered by the skill_id again.
Reply With Quote
 

Thread Tools
Display Modes

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 10:11 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