Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
使用此过程在 MobiLink 系统表中重置同步状态信息。
ml_reset_sync_state ( 'user', 'remote_id' )
user
VARCHAR(128)。MobiLink 用户名。
remote_id
VARCHAR(128)。远程 ID。
参数可以为空。如果两个参数都为空,则此过程不执行任何操作。
此存储过程为给定用户名和远程 ID 将 ml_subscription 表中的 progress、last_upload_time 和 last_download_time 列设置为它们的缺省值。progress 列的缺省值是 0,last_upload_time 和 last_download_time 列的缺省值是 '1900/01/01 00:00:00'。
如果远程 ID 为空,而 MobiLink 用户名不为空,则此过程为由给定 MobiLink 用户名引用的 ml_subscription 表中的行将这些列设置为缺省值。如果 MobiLink 用户名为空,而远程 ID 不为空,则此过程为 ml_subscription 表中具有给定远程 ID 的行将这些列设置为缺省值。
使用此存储过程时要极其谨慎。MobiLink 客户端下次为此远程 ID 请求同步时,MobiLink 服务器不会为该远程 ID 执行任何同步状态检查。重置上次同步不成功的远程 ID 会导致数据不一致。