title: Oracle Spatial issue PLS-306: wrong number or types of arguments in call to 'SDO_GEOMETRY'
body: <p>I created a table:</p>
  
  <pre><code>CREATE TABLE cola_markets (
    mkt_id NUMBER PRIMARY KEY,
    name VARCHAR2(32),
    shape SDO_GEOMETRY);
  </code></pre>
  
  <p>I tried to insert a row:</p>
  
  <pre><code>INSERT INTO cola_markets VALUES(
    1,
    'cola_a',
    SDO_GEOMETRY(
      2003,  -- two-dimensional polygon
      NULL,
      NULL,
      SDO_ELEM_INFO_ARRAY(1,1003,3), -- one rectangle (1003 = exterior)
      SDO_ORDINATE_ARRAY(1,1, 5,7) -- only 2 points needed to
            -- define rectangle (lower left and upper right) with
            -- Cartesian-coordinate data
    )
  );
  </code></pre>
  
  <p>I got the error:</p>
  
  <pre><code>SQL Error: ORA-06553: PLS-306: wrong number or types of arguments in call to 'SDO_GEOMETRY'
  </code></pre>
  
  <p>If I switch SDO_ELEM_INFO_ARRAY to NULL:</p>
  
  <pre><code>INSERT INTO cola_markets VALUES(
    1,
    'cola_a',
    SDO_GEOMETRY(
      2003,  -- two-dimensional polygon
      NULL,
      NULL,
      NULL, -- one rectangle (1003 = exterior)
      SDO_ORDINATE_ARRAY(1,1, 5,7) -- only 2 points needed to
            -- define rectangle (lower left and upper right) with
            -- Cartesian-coordinate data
    )
  );
  </code></pre>
  
  <p>I don't get error:</p>
  
  <pre><code>1 row inserted.
  </code></pre>
  
  <p>What's the issue here? Why can't I use SDO_ELEM_INFO_ARRAY?</p>