title: Binding parameter as PostgreSQL array
body: <p>I'm trying to bind a prepared statement parameter which is a "multidimensional" PostgreSQL array. Here's an array example (column type is <code>numeric[]</code>):</p>
  
  <pre><code>{{1,10},{2,20}}
  </code></pre>
  
  <p>How do I bind a value like that using a prepared statement? I tried:</p>
  
  <pre><code>stmt.setObject(1, "{{1,10},{2,20}}", Types.ARRAY);
  </code></pre>
  
  <p>It didn't work:</p>
  
  <blockquote>
    <p>Cannot cast an instance of java.lang.String to type Types.ARRAY</p>
  </blockquote>
  
  <p>Any ideas?</p>