WSO2 AM 1.10.0:"The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator."
WSO2 AM 1.10.0: "The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator."
我将 wso2 am 1.10.0(端口 offest 1)与 wso2 das 3.0.1(端口 offest 3)集成,一切正常,我可以从 wso2am_stats_db 或 das carbon 数据浏览器中查看使用数据.我按照说明 here 来了这个词。但是,每次我访问任何 apim 发布者统计页面时,我只看到库存图像(示例:配置 DAS 以查看您的图像),apim 日志吐出以下错误:
TID: [-1234] [] [2016-09-15 03:11:21,634] ERROR {JAGGERY.modules.statistics.usage:jag} -
org.wso2.carbon.apimgt.usage.client.exception.APIMgtUsageQueryServiceClientException: Error occurred while querying from JDBC databaseThe text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. {JAGGERY.modules.statistics.usage:jag}
如果有区别的话,我正在使用 MSSQL 数据库。 script/schema 接近 here. The error does not make sense to me as no text, ntext or image type was defined in the schema. See this discussion: The text, ntext, and image data > types cannot be compared or sorted, except when using IS NULL or LIKE > operator .
当对 TEXT、NTEXT 或 IMAGE 类型的字段应用 GROUP BY 或 ORDER BY 等操作时,可能会发生上述错误。您可以检查您的查询以确定这一点。
作为解决方法,您可以按照以下方法发布统计信息,这将是一种更简洁的方法。
https://docs.wso2.com/display/AM1100/Publishing+API+Runtime+Statistics+Using+REST+Client
我花了一些时间才找出为什么会抛出错误,因为我们的 DDL 没有任何列的文本数据类型,您可以从上面提到的 SQL 文件中看出这一点。
感谢大家的关注和时间。事实证明这是根本原因:
Very strange SQL Server behavior: automatically convert most varchar data types to text
我知道这不适用于其他人的情况,但我将其记录在此处以防万一有人遇到与我相同的情况...故事的寓意:永远不要相信您正在使用的软件。在这种情况下,即使我们的 DDL 没有文本数据类型,MSSQL 在我们 运行 DDL/SQL 脚本到 5、10 分钟或几小时后以某种方式将大部分 varchar 类型转换为文本以 运行dom 方式创建这些表。
我将 wso2 am 1.10.0(端口 offest 1)与 wso2 das 3.0.1(端口 offest 3)集成,一切正常,我可以从 wso2am_stats_db 或 das carbon 数据浏览器中查看使用数据.我按照说明 here 来了这个词。但是,每次我访问任何 apim 发布者统计页面时,我只看到库存图像(示例:配置 DAS 以查看您的图像),apim 日志吐出以下错误:
TID: [-1234] [] [2016-09-15 03:11:21,634] ERROR {JAGGERY.modules.statistics.usage:jag} -
org.wso2.carbon.apimgt.usage.client.exception.APIMgtUsageQueryServiceClientException: Error occurred while querying from JDBC databaseThe text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. {JAGGERY.modules.statistics.usage:jag}
如果有区别的话,我正在使用 MSSQL 数据库。 script/schema 接近 here. The error does not make sense to me as no text, ntext or image type was defined in the schema. See this discussion: The text, ntext, and image data > types cannot be compared or sorted, except when using IS NULL or LIKE > operator .
当对 TEXT、NTEXT 或 IMAGE 类型的字段应用 GROUP BY 或 ORDER BY 等操作时,可能会发生上述错误。您可以检查您的查询以确定这一点。
作为解决方法,您可以按照以下方法发布统计信息,这将是一种更简洁的方法。
https://docs.wso2.com/display/AM1100/Publishing+API+Runtime+Statistics+Using+REST+Client
我花了一些时间才找出为什么会抛出错误,因为我们的 DDL 没有任何列的文本数据类型,您可以从上面提到的 SQL 文件中看出这一点。
感谢大家的关注和时间。事实证明这是根本原因: Very strange SQL Server behavior: automatically convert most varchar data types to text
我知道这不适用于其他人的情况,但我将其记录在此处以防万一有人遇到与我相同的情况...故事的寓意:永远不要相信您正在使用的软件。在这种情况下,即使我们的 DDL 没有文本数据类型,MSSQL 在我们 运行 DDL/SQL 脚本到 5、10 分钟或几小时后以某种方式将大部分 varchar 类型转换为文本以 运行dom 方式创建这些表。