title: ERROR : The column index is out of range: 1, number of columns: 0
body: <p>I'm using wso2dss 3.0.0.I'm trying to execute a postgresql query i.e.</p>
  
  <pre><code>SELECT addressid, geocode
  FROM maddress
  WHERE geocode::point &lt;@ circle '((18.9750,72.8258), 5)';
  </code></pre>
  
  <p>It is working fine in PostgreSQL.When i'm using same query in wso2dss i.e. </p>
  
  <pre><code>SELECT addressid, geocode
  FROM maddress
  WHERE geocode::point &lt;@ circle '((?,?), ?)';    
  </code></pre>
  
  <p>It gives me error like :</p>
  
  <pre><code>DS Fault Message: Error in 'SQLQuery.processNormalQuery'
  DS Code: DATABASE_ERROR
  Source Data Service:-
  Name: Geofence_DataService
  Location: /Geofence_DataService.dbs
  Description: N/A
  Default Namespace: http://ws.wso2.org/dataservice
  Current Request Name: adding_geofence_op
  Current Params: {longitude=72.8258, radius=4, latitude=18.9750}
  Nested Exception:-
  DS Fault Message: Error in 'createProcessedPreparedStatement'
  DS Code: UNKNOWN_ERROR
  Nested Exception:-
  org.postgresql.util.PSQLException: The column index is out of range: 1, number of columns: 0.
  </code></pre>
  
  <p>if i remove <code>" ' "</code>(<strong>quotation mark</strong>) of circle then also it will not execute. query '' look like this :</p>
  
  <p>SELECT addressid, geocode
      FROM maddress
      WHERE geocode::point &lt;@ circle ((?,?), ?);  </p>
  
  <p>it'll give following error :</p>
  
  <pre><code>Caused by: javax.xml.stream.XMLStreamException: DS Fault Message: Error in 'SQLQuery.processNormalQuery'
  DS Code: DATABASE_ERROR
  Source Data Service:-
  Name: Geofence_DataService
  Location: /Geofence_DataService.dbs
  Description: N/A
  Default Namespace: http://ws.wso2.org/dataservice
  Current Request Name: geofence_op
  Current Params: {longitude=72.8258, radius=4, latitude=18.9750}
  Nested Exception:-
  org.postgresql.util.PSQLException: ERROR: function circle(record, double precision) does not exist
    Hint: No function matches the given name and argument types. You might need to add explicit type cast
  </code></pre>
  
  <p>But circle is inbuilt geographical function of PostgreSQL then is it necessary to write explicit function? else where is the exact error? Even if i put the query with input parameter as i execute in PostgreSQL then also it's working.If so then why it is not accepting dynamic parameters? Please let me know..</p>