function MetaColumns($table,$upper=false)
	{
		$false = false;
		if (!empty($this->metaColumnsSQL)) {

			$rs = $this->Execute(sprintf($this->metaColumnsSQL,$table));
			if ($rs === false) return $false;

			$retarr = array();
			while (!$rs->EOF) {
				$fld = new ADOFieldObject();
				$fld->name = $rs->Fields('field_name');
				$fld->type = $rs->Fields('type');
				$fld->max_length = $rs->Fields('width');
				$retarr[strtoupper($fld->name)] = $fld;
				$rs->MoveNext();
			}
			$rs->Close();
			return $retarr;
		}
		return $false;
	}
function MetaColumns($table,$upper=false)
	{
		$false = false;
		if (!empty($this->metaColumnsSQL)) {

			$rs = $this->Execute(sprintf($this->metaColumnsSQL,$table));
			if ($rs === false) return $false;

			$retarr = array();
			while (!$rs->EOF) {
				$fld = new ADOFieldObject();
				$fld->name = $rs->Fields('field_name');
				$fld->type = $rs->Fields('type');
				$fld->max_length = $rs->Fields('width');
				$retarr[strtoupper($fld->name)] = $fld;
				$rs->MoveNext();
			}
			$rs->Close();
			return $retarr;
		}
		return $false;
	}
function MetaColumns ( $ table , $ upper = false ) { $ false = false ; if ( ! empty ( $ this -> metaColumnsSQL ) ) { $ rs = $ this -> Execute ( sprintf ( $ this -> metaColumnsSQL , $ table ) ) ; if ( $ rs === false ) return $ false ; $ retarr = array ( ) ; while ( ! $ rs -> EOF ) { $ fld = new ADOFieldObject ( ) ; $ fld -> name = $ rs -> Fields ( 'field_name' ) ; $ fld -> type = $ rs -> Fields ( 'type' ) ; $ fld -> max_length = $ rs -> Fields ( 'width' ) ; $ retarr [ strtoupper ( $ fld -> name ) ] = $ fld ; $ rs -> MoveNext ( ) ; } $ rs -> Close ( ) ; return $ retarr ; } return $ false ; }
fix a bug which prevent the metaColumns query to be executed for Sybase ASE
fix a bug which prevent the metaColumns query to be executed for Sybase ASE