gpt4 book ai didi

Delphi dbExpress 和 Interbase : UTF8 migration steps and risks?

转载 作者:行者123 更新时间:2023-12-03 15:34:26 37 4
gpt4 key购买 nike

目前,我们的数据库使用Win1252作为唯一的字符编码。我们很快就必须在数据库表中支持 Unicode,这意味着我们必须对四个数据库和大约 80 个在 24/7 环境中内部运行的 Delphi 应用程序执行此迁移。是否有针对 Delphi 应用程序的数据库迁移到 UTF-8(或 UNICODE_FSS)的建议?下面列出一些问题。非常感谢您的回答!

  • 是否有工具可以通过转储数据、使用 UNICODE_FSS 或 UTF-8 重新创建数据库来帮助迁移现有数据库(大小在 250 MB 到 2 GB 之间,无 Blob 字段) ,然后加载数据?
  • Delphi 2009、dbExpress 和 Interbase 7.5 是否存在与 Unicode 字符集相关的已知问题
  • 您是否建议先将数据库升级到Interbase 2009? (此升级已计划,但优先级不高)
  • 我们是否可以简单地迁移数据库,然后 Delphi 将自动处理 Unicode 字符集,或者我们是否也必须更改每个数据模块(dfm 和源代码)中的所有字符字段类型
  • 您建议采用哪种策略来与现有应用程序的正常开发和维护并行进行迁移?该应用程序在内部运行,因此开发和数据库管理都是在内部完成的。
<小时/>

更新:来自 InterBase 讨论论坛主题:Unicode Databases in InterBase - Really? (这不是我的帖子,但它表明 InterBase XE 中仍然存在一些问题)。

Here are some reports I've submitted: QC#92867 - String fields are blank coming from Views only if the View includes a Union, and when using a ClientDataSet. This was found as missing data on a few of my reports, which no longer work.

QC#91494 - IB Character column data Character fields (eg: Char(1)) are padded with blanks when retrieved through a stored procedure. Tests fail - eg: If Active = "Y". I make heavy use of stored procedures with forms and these do not work.

QC#91355 - IBSqlMonitor fails. The output of IBSqlMonitor is somewhat garbled making this tool useless. (So, even my shovel is broken!)

Unreported - Persistent fields in TClientDataSet fail for TWideString.

其他相关质量控制条目:

QC#94455 SQL Unicode Char 类型失败 (InterBase XE)

最佳答案

两者Database WorkbenchIBExpert可以为您进行数据迁移。

当我到达 Entwickler Tage 时,我会就其他问题回复您。

--杰罗恩

关于Delphi dbExpress 和 Interbase : UTF8 migration steps and risks?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2302670/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com