Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-08-2009, 05:23 PM
adhmwagde adhmwagde is offline
 
Join Date: Sep 2006
Location: Egypt
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Error Number : 1267

PHP Code:
Invalid SQL:

            SELECT prefix.*, prefixpermission.usergroupid AS restriction
            FROM forumprefixset AS forumprefixset
            INNER JOIN prefixset AS prefixset ON (prefixset.prefixsetid = forumprefixset.prefixsetid)
            INNER JOIN prefix AS prefix ON (prefix.prefixsetid = prefixset.prefixsetid)
            LEFT JOIN prefixpermission AS prefixpermission ON (prefix.prefixid = prefixpermission.prefixid)
            WHERE forumprefixset.forumid = 2
            ORDER BY prefixset.displayorder, prefix.displayorder;

MySQL Error   : Illegal mix of collations (latin1_general_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '='
Error Number  : 1267
Request Date  : Thursday, January 8th 2009 @ 11:21:50 PM
Error Date    : Thursday, January 8th 2009 @ 11:21:50 PM
Script        : [url]http://www.alshohooh.ws/vb/newthread.php?do=newthread&f=2[/url]
Referrer      : [url]http://www.alshohooh.ws/vb/forumdisplay.php?f=2[/url]
IP Address    : 41.178.144.86
Username      : الدعم الفني
Classname     : vB_Database
MySQL Version : 5.0.51a-community 
Reply With Quote
  #2  
Old 01-08-2009, 06:09 PM
Bellardia Bellardia is offline
 
Join Date: Jul 2007
Location: Hamilton, Ontario
Posts: 378
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All your tables should have the same collation, the vb default is latin1_swedish_ci.
Reply With Quote
  #3  
Old 01-08-2009, 06:51 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats Right, This is from Wayne Luke over at the VBulletin.com site

All tables and fields should be the same collation to prevent this error from occuring in the future. It can occur on other queries not just when upgrading if there are mixed collations. When vBulletin creates new tables and fields it will use the default of the database for the collation. This is usually latin1_general_ci unless you change it. You can see instructions on how to change a database's collation settings in the MySQL manual.

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. The time now is 05:20 AM.


Powered by vBulletin® Version 3.9.0
Copyright ©2000 - 2017, vBulletin Solutions Inc.