title: Running an SQL Script with Oracle Application Express
body: <p>Greetings,</p>
  
  <p>I am trying to run an SQL Script uploaded using Application Express (APEX), the web based interface for Oracle DBMS.</p>
  
  <p>However, upon clicking the Run button, it does nothing, suspecting any javascript error, I pulled out firebug and there appears to be an error on the js.</p>
  
  <pre><code>this.endLine.isPreceding is not a function
  http://localhost:8080/i/editor/codearea.xbl.xml
  Line 2864
  </code></pre>
  
  <p>What was reported by firebug.</p>
  
  <p>Any Idea on this? </p>
  
  <p>Thank's in advance.</p>
  
  <p>-aw</p>
  
  <p>EDIT: the js portion</p>
  
  <pre><code>CodeRange.prototype.setStartBeforeEnd = function()
  {
    if (this.endLine.isPreceding(this.startLine) ||
      (this.endLine == this.startLine &amp;&amp; this.endCol &lt; this.startCol))
    {
      var l = this.endLine;
      this.endLine = this.startLine;
      this.startLine = l;
  
      var c = this.endCol;
      this.endCol = this.startCol;
      this.startCol = c;
    }
    return this;
  };
  </code></pre>