首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 冲浪宝典 > 网络资源 > MySQL Bugs: #3611: Illegal mix of collations error
【标  题】:MySQL Bugs: #3611: Illegal mix of collations error
【关键字】:MySQL,Bugs,#3611,Illegal,mix,of,collations,error
【来  源】:http://blog.chinaunix.net/article.php?articleId=9408&blogId=2536

MySQL Bugs: #3611: Illegal mix of collations error

http://bugs.mysql.com/bug.php?id=3611

[30 Apr 2004 2:24pm] Oleg Ivanov
Description:
After migrating from 3.0.9 driver to 3.1.1alpha some SELECTS could not be
executed due to error: "Illegal mix of collations.."
If it is a bug it must be solved, because jdbc driver are COMPLETELY broken. If
it is a "feature", it must be documented. It is not a good practice when
switching a jdbc drivers goes application unusable.

How to repeat:
Simple query:
rset = stmt.executeQuery("SELECT A, B, C FROM TABS WHERE
EMAIL=LOWER('"+user+"')");

return an exception:
General error message from server: "Illegal mix of collations
(cp1251_bulgarian_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation
'='"

The same error is reported in list http://lists.mysql.com/java/7373

Suggested fix:
[30 Apr 2004 3:23pm] Mark Matthews
This is a duplicate of #2177.

The error is caused by changes needed to support MySQL-4.1, which were made when
the charsets functionality in MySQL-4.1 was still in flux.

You will need to download the latest nightly snapshot of Connector/J 3.1 from
http://downloads.mysql.com/snapshots.php to see the fix, or wait for the release
of Connector/J 3.1.2.
服务器游标分页代码:【上一篇】
PostgreSQL 7.4.6:【下一篇】
【相关文章】
  • MYSQL到ORACLE程序迁移的注意事项[转帖]
  • Informix7.3(Win2K server)数据库服务器无法启动
  • MySQL做同步实例
  • mysql replication方案
  • 解决phpmyadmin不能登录的问题 (mysql.4.1.x)
  • “2005 MySQL用户大会”值得期待
  • MySQL数据库接口的VC实现与应用
  • MySQL和Red Hat“夫唱妇随”
  • MYSQL数据库初学者使用指南
  • MySQL临时文件“闯祸”
  • 【随机文章】
  • 在weblogic81中,部署应用程序的简易方法
  • 用java输出杨辉三角形
  • 谈谈数据从sql server数据库导入mysql数据库的体验
  • C#简明教程(二)
  • 使用Enterprise Library DAAB架构灵活的数据提供层
  • 美国康本纯植物保健品治疗慢性寻麻疹小儿寻麻疹人工寻麻疹
  • 原创的自定义分页UserControl 分享及探讨
  • 经典T-SQL[MD5算法实现]
  • JS版本的甘特图,希望对要用的朋友有帮助,现在这个还已支持树型收缩!同步的。
  • H.264 sequence parameter sets成员值含义学习笔记
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.