문제

I have a simple cfquery object:

<cfquery name="getP" datasource="DS">
   select top 5 * from table
</cfquery>

When I do a dump of getP.getMetaData(), I clearly see getPrecision(int) in the method list. Though, when I perform getP.getMetaData().getPrecision(1), I get an error:

java.lang.UnsupportedOperationException: getPrecision()

What am I doing wrong?

The error:

enter image description here

도움이 되었습니까?

해결책

The javadocs say it's not supported yet, hence it throws that error.

http://sqlitejdbc.sourceforge.jp/org/sqlite/jdbc/JdbcParameterMetaData.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top