WebDAV 搜索整数数据类型
我有一个 WebDAV 查询,它在 Exchange 2003 服务器上的字段“TestField”上搜索值为“3”的电子邮件。该字段包含 Integer 类型的数据(另一个应用程序使用数据类型 OlUserPropertyType.olInteger 设置该字段)。
SELECT "TestField" FROM "http://server/exchange/mailbox/mialbox" WHERE "TestField" = 3
我总是收到“错误请求 (400)”。在具有其他数据类型(字符串)的另一个字段上是有效的。
这些有什么问题吗?我必须转换该值,但我该怎么做呢?
I have a WebDAV query which search for e-mails on an Exchange 2003 server on field 'TestField' with the value '3'. This field contains data of the type Integer (an another application set this field with data type OlUserPropertyType.olInteger).
SELECT "TestField" FROM "http://server/exchange/mailbox/mialbox" WHERE "TestField" = 3
I received always a "Bad Request (400)". On another fields with another data types (string) is works.
What is wrong in these? Must I cast the value but how can I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题解决了。铸造是解决方案。
Problem solved. Casting is the solution.