简体   繁体   English

根据Firebird 2.5要求检查Firebird 1.5模式的工具或过程

[英]Tool or procedure to check Firebird 1.5 schema against Firebird 2.5 requirements

Is there a tool or written procedure to check what needs to be fixed in a Firebird 1.5 scnema to make it useable in a Firebird 2.5 environment. 是否有工具或书面程序来检查需要在Firebird 1.5程序中修复的内容,以使其在Firebird 2.5环境中可用。

I know there were changes and reserved words added in 2.0 but some of that seems to have been lessoned or changed again in 2.5. 我知道2.0中有更改和保留字,但其中一些似乎已在2.5中得到了教训或更改。

Is simply trying to load the schema in 2.5 enough? 仅仅尝试在2.5中加载架构就足够了吗? Will the triggers be validated upon creation or only when they actually run? 触发器将在创建时或仅在它们实际运行时进行验证吗?

Is there a definitive list of changes somewhere that I can't seem to find? 在我似乎找不到的地方有确定的变更清单吗?

Simply get your code into a sql script and try to execute it against an empty Firebird 2.5 database and check for any failures. 只需将您的代码放入sql脚本中,然后尝试对空的Firebird 2.5数据库执行它,并检查是否有任何故障。 Doing this way, all the database objects will be created and any incompatibility will result in errors. 这样做,将创建所有数据库对象,任何不兼容都将导致错误。

Note that backup and restore will not validate already existing triggers and procedures against new reserved words, etc. If you hit any of them, you would know only when you try to recompile the trigger/procedure, so creating a fresh database and applying the script is the easiest way to be 100% guaranteed. 请注意,备份和还原不会针对新的保留字等来验证现有的触发器和过程。如果您点击了其中的任何一个,则只有在尝试重新编译触发器/过程时才知道,因此创建一个新的数据库并应用该脚本是获得100%保证的最简单方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM