function errno()
 {
     return ingres_errno($this->link);
 }
Example #2
0
 function query($sql, $params = array(), $sqltypes = "")
 {
     /*After a query is send, its result must be fetched BEFORE another query is executed
      *If not the result of the first query is destroyed by the second query
      */
     $this->Result = ingres_query($this->Connection, $sql, $params, $sqltypes);
     if ($this->Result) {
         return;
     } else {
         throw new Exception("Error while sending query:" . $sql . "<br/>Errno: " . ingres_errno() . "<br/>Error: " . ingres_error(), 3);
     }
 }