如何检查给定的时间is (即fa6e9e80-299c-11e7-98d8-f7a8744353f3 )在查询前是否是有效的timeuuid?
使用轻微的不同,但格式仍然正确的timeuuid: fa6e9e80-299c-11e7-98d8-f7a8744353av会导致错误:
object(Cassandra\Exception\InvalidSyntaxException)#199 (7) { ["message":protected]=> string(54) "line 1:103 mismatched character 'v' expecting set null"Cassandra PHP驱动程序文档似乎没有提供有效的检查功能。( https://datastax.github.io/php-driver/api/Cassandra/ )
发布于 2017-04-25 10:41:28
version() 使用方法检查uuid的版本。如果为1,则为timeuuid.
https://datastax.github.io/php-driver/api/Cassandra/interface.UuidInterface/#method-version
https://stackoverflow.com/questions/43608019
复制相似问题