PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Tue Jun 26, 2007 8:57 am Reply with quote Back to top

So I was hacking on GCalendar the other day and I came up with this cool SQL query that compared a varchar(255) field in one table with a varchar(255) field in another table. However the query failed because the collation in the nuke_users table was somehow set to Swedish, and the one in my GCalendar table was using the default Latin.

I have no idea why but several varchar fields in my nuke_users table are using a Swedish collation. I don't know if they originally got created that way using the Nuke 7.9 install script, or they somehow got changed that way when I converted to RavenNuke (due to my own mysqldiff script).

Anyway, that sort of kills the query I wrote, because there are probably others that may be in the same boat. This was the first time I encountered this. Any thoughts on this? Does anyone else have wacky Swedish collations?

I can break up my query into two queries and work around this. But it was frustrating to see see this cool query get broken because of something dumb like this.
View user's profile Send private message
Susann
Moderator


Joined: Dec 19, 2004
Posts: 2282
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Tue Jun 26, 2007 1:35 pm Reply with quote Back to top

All i know about the collation is that it isnŽt so important like I thought first its used by order by. I didŽt have the option to change the collation in the past but all my websites are transfered to a new server and since that time I can change it.
In Nuke users table I have for all nuke sites latin1_swedish_ci.
Gremmie there youŽll find much more about collation:
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Tue Jun 26, 2007 5:41 pm Reply with quote Back to top

Yeah I know what it is in general, I just wondered why FB used a Swedish collation?

Or perhaps this got messed up somehow and wasn't originally Swedish? Does anyone else have Swedish collations in their nuke tables?

(Insert Swedish Chef from the muppets joke here - bork bork bork)

In any event it says to me that module authors can't reliably compare char fields for tables they don't control...
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum