unspecified 适用范围,解决问题现象

Posted 瀚高PG实验室

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了unspecified 适用范围,解决问题现象相关的知识,希望对你有一定的参考价值。

瀚高数据库
目录
文档用途
详细信息
相关文档
文档用途
最近项目中,经常遇到需要URL里添加stringtype=unspecified情况。什么情况下需要添加呢?

详细信息
1、直接URL添加stringtype=unspecified

2、程序里报类似ERROR: column is of type timestamp without time zone but expression is of type character varying错误 ,取出SQL放到数据库正常执行,URL再添加stringtype=unspecified

pg社区对此处的解释

stringtype = String

specify the type to use when binding PreparedStatement parameters set via setString(). If stringtype is set to varchar(the default), such parameters will be sent to the server as varchar parameters. If stringtype is set to unspecified, parameters will be sent to the server as untyped values, and the server will attempt to infer an appropriate type. This is useful if you have an existing application that uses setString() to set parameters that are actually some other type, such as integers, and you are unable to change the application to use an appropriate method such as setInt().

以上是关于unspecified 适用范围,解决问题现象的主要内容,如果未能解决你的问题,请参考以下文章

Android Studio解决unspecified on project app resolves to an APK archive which is not supported

Android Studio解决unspecified on project app resolves to an APK archive which is not supported

(转)Android Studio解决unspecified on project app resolves to an APK archive which is not supported(示例代码

The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified.

An unspecified error occurred!

在 AndroidManifest 中:期待 android:screenOrientation="unspecified"