Best unofficial Apache Server developers community |
|
I have the following JDBC code. Note that I am attempting to use PostGIS geography:
I am getting the following exception on the last line of code:
I understand that it thinks I only have 2 parameters there, but you can see that I intended there to be 10. I'm not sure why it is not reading any of the parameters within the
posted via StackOverflow
|
![]()  
|
Your problem is that this:
is an SQL string literal that just happens to contain eight question marks. Since that is an SQL string literal, none of the question marks inside it are considered to be placeholders. That leaves you with two placeholders: the one at the very beginning of the You'll have to build your polygon some other way. There might be a better way than
The placeholder inside |