original_string: function MetaColumns($table, $normalize=true)
  	{
  	global $ADODB_FETCH_MODE;
  
  		$save = $ADODB_FETCH_MODE;
  		$ADODB_FETCH_MODE = ADODB_FETCH_NUM;
  
  		$rs = $this->Execute(sprintf($this->metaColumnsSQL,strtoupper($table)));
  
  		$ADODB_FETCH_MODE = $save;
  		$false = false;
  		if ($rs === false) {
  			return $false;
  		}
  
  		$retarr = array();
  		//OPN STUFF start
  		$dialect3 = ($this->dialect==3 ? true : false);
  		//OPN STUFF end
  		while (!$rs->EOF) { //print_r($rs->fields);
  			$fld = new ADOFieldObject();
  			$fld->name = trim($rs->fields[0]);
  			//OPN STUFF start
  			$this->_ConvertFieldType($fld, $rs->fields[7], $rs->fields[3], $rs->fields[4], $rs->fields[5], $rs->fields[6], $dialect3);
  			if (isset($rs->fields[1]) && $rs->fields[1]) {
  				$fld->not_null = true;
  			}
  			if (isset($rs->fields[2])) {
  
  				$fld->has_default = true;
  				$d = substr($rs->fields[2],strlen('default '));
  				switch ($fld->type)
  				{
  				case 'smallint':
  				case 'integer': $fld->default_value = (int) $d; break;
  				case 'char':
  				case 'blob':
  				case 'text':
  				case 'varchar': $fld->default_value = (string) substr($d,1,strlen($d)-2); break;
  				case 'double':
  				case 'float': $fld->default_value = (float) $d; break;
  				default: $fld->default_value = $d; break;
  				}
  		//	case 35:$tt = 'TIMESTAMP'; break;
  			}
  			if ((isset($rs->fields[5])) && ($fld->type == 'blob')) {
  				$fld->sub_type = $rs->fields[5];
  			} else {
  				$fld->sub_type = null;
  			}
  			//OPN STUFF end
  			if ($ADODB_FETCH_MODE == ADODB_FETCH_NUM) $retarr[] = $fld;
  			else $retarr[strtoupper($fld->name)] = $fld;
  
  			$rs->MoveNext();
  		}
  		$rs->Close();
  		if ( empty($retarr)) return $false;
  		else return $retarr;
  	}
code: function MetaColumns($table, $normalize=true)
  	{
  	global $ADODB_FETCH_MODE;
  
  		$save = $ADODB_FETCH_MODE;
  		$ADODB_FETCH_MODE = ADODB_FETCH_NUM;
  
  		$rs = $this->Execute(sprintf($this->metaColumnsSQL,strtoupper($table)));
  
  		$ADODB_FETCH_MODE = $save;
  		$false = false;
  		if ($rs === false) {
  			return $false;
  		}
  
  		$retarr = array();
  		//OPN STUFF start
  		$dialect3 = ($this->dialect==3 ? true : false);
  		//OPN STUFF end
  		while (!$rs->EOF) { //print_r($rs->fields);
  			$fld = new ADOFieldObject();
  			$fld->name = trim($rs->fields[0]);
  			//OPN STUFF start
  			$this->_ConvertFieldType($fld, $rs->fields[7], $rs->fields[3], $rs->fields[4], $rs->fields[5], $rs->fields[6], $dialect3);
  			if (isset($rs->fields[1]) && $rs->fields[1]) {
  				$fld->not_null = true;
  			}
  			if (isset($rs->fields[2])) {
  
  				$fld->has_default = true;
  				$d = substr($rs->fields[2],strlen('default '));
  				switch ($fld->type)
  				{
  				case 'smallint':
  				case 'integer': $fld->default_value = (int) $d; break;
  				case 'char':
  				case 'blob':
  				case 'text':
  				case 'varchar': $fld->default_value = (string) substr($d,1,strlen($d)-2); break;
  				case 'double':
  				case 'float': $fld->default_value = (float) $d; break;
  				default: $fld->default_value = $d; break;
  				}
  		//	case 35:$tt = 'TIMESTAMP'; break;
  			}
  			if ((isset($rs->fields[5])) && ($fld->type == 'blob')) {
  				$fld->sub_type = $rs->fields[5];
  			} else {
  				$fld->sub_type = null;
  			}
  			//OPN STUFF end
  			if ($ADODB_FETCH_MODE == ADODB_FETCH_NUM) $retarr[] = $fld;
  			else $retarr[strtoupper($fld->name)] = $fld;
  
  			$rs->MoveNext();
  		}
  		$rs->Close();
  		if ( empty($retarr)) return $false;
  		else return $retarr;
  	}
code_tokens: function MetaColumns ( $ table , $ normalize = true ) { global $ ADODB_FETCH_MODE ; $ save = $ ADODB_FETCH_MODE ; $ ADODB_FETCH_MODE = ADODB_FETCH_NUM ; $ rs = $ this -> Execute ( sprintf ( $ this -> metaColumnsSQL , strtoupper ( $ table ) ) ) ; $ ADODB_FETCH_MODE = $ save ; $ false = false ; if ( $ rs === false ) { return $ false ; } $ retarr = array ( ) ; //OPN STUFF start $ dialect3 = ( $ this -> dialect == 3 ? true : false ) ; //OPN STUFF end while ( ! $ rs -> EOF ) { //print_r($rs->fields); $ fld = new ADOFieldObject ( ) ; $ fld -> name = trim ( $ rs -> fields [ 0 ] ) ; //OPN STUFF start $ this -> _ConvertFieldType ( $ fld , $ rs -> fields [ 7 ] , $ rs -> fields [ 3 ] , $ rs -> fields [ 4 ] , $ rs -> fields [ 5 ] , $ rs -> fields [ 6 ] , $ dialect3 ) ; if ( isset ( $ rs -> fields [ 1 ] ) && $ rs -> fields [ 1 ] ) { $ fld -> not_null = true ; } if ( isset ( $ rs -> fields [ 2 ] ) ) { $ fld -> has_default = true ; $ d = substr ( $ rs -> fields [ 2 ] , strlen ( 'default ' ) ) ; switch ( $ fld -> type ) { case 'smallint' : case 'integer' : $ fld -> default_value = ( int ) $ d ; break ; case 'char' : case 'blob' : case 'text' : case 'varchar' : $ fld -> default_value = ( string ) substr ( $ d , 1 , strlen ( $ d ) - 2 ) ; break ; case 'double' : case 'float' : $ fld -> default_value = ( float ) $ d ; break ; default : $ fld -> default_value = $ d ; break ; } //	case 35:$tt = 'TIMESTAMP'; break; } if ( ( isset ( $ rs -> fields [ 5 ] ) ) && ( $ fld -> type == 'blob' ) ) { $ fld -> sub_type = $ rs -> fields [ 5 ] ; } else { $ fld -> sub_type = null ; } //OPN STUFF end if ( $ ADODB_FETCH_MODE == ADODB_FETCH_NUM ) $ retarr [ ] = $ fld ; else $ retarr [ strtoupper ( $ fld -> name ) ] = $ fld ; $ rs -> MoveNext ( ) ; } $ rs -> Close ( ) ; if ( empty ( $ retarr ) ) return $ false ; else return $ retarr ; }
docstring: returns array of ADOFieldObjects for current table
docstring_tokens: returns array of ADOFieldObjects for current table