Question

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

Was it helpful?

Solution

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

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top