【问题标题】:create collation of firebird(3.0.1) db error on windows but succeed on centos在 Windows 上创建 firebird(3.0.1) db 错误的排序规则,但在 centos 上成功
【发布时间】:2017-03-19 20:50:08
【问题描述】:

我尝试在新数据库上创建排序规则(windows 上的 firebird3.0.1。我按照以下步骤操作:

  1. create database 'c:\tmp\ebizmis.fdb' user 'SYSDBA' password '123456' 默认字符集 utf8 collat​​ion unicode;

  2. 连接'c:\tmp\ebizmis.fdb'用户'SYSDBA'密码'123456';

  3. 从 UNICODE 不区分大小写的 'LOCALE=zh' 中为 utf8 创建排序规则 py;

在这一步,提示错误:

Statement failed, SQLSTATE = HY000
unsuccessful metadata update
-CREATE COLLATION PY failed
-Invalid collation attributes

但是在 CentOS 上它在 firebird 3.0.1 上是成功的。

当我将大写的 LOCALE 更改为小写时:

create collation py for utf8 from UNICODE case insensitive 'locale=zh';

则可以在windows上执行,但不能按汉语拼音排序。

【问题讨论】:

    标签: firebird collation


    【解决方案1】:

    我无法在 windows 下构建 Firebird 3.0.1,但我可以构建 2.5.6。所以我在2.5.6下调试。我发现Firebird中没有错误。问题的原因是我没有在icu中包含zh locale。所以我从icu网站下载数据并替换3.0.1中的文件。有效!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-10-03
      • 1970-01-01
      • 1970-01-01
      • 2018-06-12
      • 1970-01-01
      • 1970-01-01
      • 2021-09-10
      相关资源
      最近更新 更多