Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/lib/adodb/drivers/adodb-netezza.inc.php

    r136 r1331  
    11<?php
    22/*
    3   V5.19  23-Apr-2014  (c) 2000-2014 John Lim (jlim#natsoft.com). All rights reserved.
     3  @version   v5.20.1  06-Dec-2015
     4  @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
     5  @copyright (c) 2014      Damien Regad, Mark Newnham and the ADOdb community
    46
    57  First cut at the Netezza Driver by Josh Eldridge joshuae74#hotmail.com
     
    4951
    5052
    51         function ADODB_netezza()
     53        function __construct()
    5254        {
    5355
     
    140142        var $canSeek = true;
    141143
    142         function ADORecordSet_netezza($queryID,$mode=false)
     144        function __construct($queryID,$mode=false)
    143145        {
    144                 if ($mode === false) {
    145                         global $ADODB_FETCH_MODE;
    146                         $mode = $ADODB_FETCH_MODE;
    147                 }
    148                 switch ($mode)
    149                 {
    150                 case ADODB_FETCH_NUM: $this->fetchMode = PGSQL_NUM; break;
    151                 case ADODB_FETCH_ASSOC:$this->fetchMode = PGSQL_ASSOC; break;
    152 
    153                 case ADODB_FETCH_DEFAULT:
    154                 case ADODB_FETCH_BOTH:
    155                 default: $this->fetchMode = PGSQL_BOTH; break;
    156                 }
    157                 $this->adodbFetchMode = $mode;
    158                 $this->ADORecordSet($queryID);
     146                parent::__construct($queryID,$mode);
    159147        }
    160148
     
    163151        {
    164152        global $ADODB_COUNTRECS;
    165                 $this->_numOfRows = ($ADODB_COUNTRECS)? @pg_numrows($this->_queryID):-1;
    166                 $this->_numOfFields = @pg_numfields($this->_queryID);
     153                $this->_numOfRows = ($ADODB_COUNTRECS)? @pg_num_rows($this->_queryID):-1;
     154                $this->_numOfFields = @pg_num_fields($this->_queryID);
    167155        }
    168156
Note: See TracChangeset for help on using the changeset viewer.