logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
MySQL version 5.0?

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related
View previous topic :: View next topic  
Author Message
Smolin



Joined: 10 Jul 2005
Posts: 4

PostPosted: Sun Jul 10, 2005 5:15    Post subject: MySQL version 5.0? Reply with quote

Has NWNX2 been tested at all under the latest version of MySQL (5.0)?

I ask because I'm having trouble sorting some data for my server. We have a stats page that tracks who's been on recently and for how long total. Works great ... except that MySQL 4.1 doesn't seem to understand decimal places. So "2.0" is more than "120.0" as far as it's concerned.

I can get it to sort properly by using the raw integer, which is set to 10 places, but when I convert it to days, it gives me the problem decribed above. And I'd like have it translated into days: the raw integer is total seconds online, which becomes sort of meaningless at a glance.

From what I gather, MySQL 5.0 supports casting as decimal, which would allow me to left-pad the number, and thereby sort properly.

P.S. I am a total database novice, and am just trying to keep this DB I've inherited working nicely. Any suggestions on how to make this work would be greatly appreciated.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group