engine里加一个xorm version吧 #2204

Open
opened 2022-12-19 04:17:24 +00:00 by RelicOfTesla · 0 comments

由于多个模块多个工程的原因,有时程序都不知道到底使用的是哪个版本的engine,有些兼容性并不好的逻辑需要判断下版本号。
建议增加一个EngineVersion()函数,每次发版本时更新下即可。

ps:个人建议使用0x11223344 为版本号值,如1.3.3则为0x01030300。简化版本比较的算法问题(即1.10.1应当大于1.3.1这个问题)

由于多个模块多个工程的原因,有时程序都不知道到底使用的是哪个版本的engine,有些兼容性并不好的逻辑需要判断下版本号。 建议增加一个EngineVersion()函数,每次发版本时更新下即可。 ps:个人建议使用0x11223344 为版本号值,如1.3.3则为0x01030300。简化版本比较的算法问题(即1.10.1应当大于1.3.1这个问题)
lunny added the
kind
proposal
label 2022-12-19 08:44:47 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/xorm#2204
No description provided.