function fieldExists( $table, $field, $fname = 'DatabaseOracle::fieldExists' ) {
$table = trim( $table, '"' );
- if (isset($this->mFieldInfoCache[$table.'.'.$field])) {
+ if (isset($this->mFieldInfoCache["$table.$field"])) {
return true;
} elseif ( !isset( $this->fieldInfo_stmt ) ) {
$this->fieldInfo_stmt = oci_parse( $this->mConn, 'SELECT * FROM wiki_field_info_full WHERE table_name = upper(:tab) and column_name = UPPER(:col)' );
}
$res = new ORAResult( $this, $this->fieldInfo_stmt );
if ($res->numRows() != 0) {
- $this->mFieldInfoCache[$table.'.'.$field] = new ORAField( $res->fetchRow() );
+ $this->mFieldInfoCache["$table.$field"] = new ORAField( $res->fetchRow() );
return true;
} else {
return false;
function fieldInfo( $table, $field ) {
$table = trim( $table, '"' );
- if (isset($this->mFieldInfoCache[$table.'.'.$field])) {
- return $this->mFieldInfoCache[$table.'.'.$field];
+ if (isset($this->mFieldInfoCache["$table.$field"])) {
+ return $this->mFieldInfoCache["$table.$field"];
} elseif ( !isset( $this->fieldInfo_stmt ) ) {
$this->fieldInfo_stmt = oci_parse( $this->mConn, 'SELECT * FROM wiki_field_info_full WHERE table_name = upper(:tab) and column_name = UPPER(:col)' );
}
return false;
}
$res = new ORAResult( $this, $this->fieldInfo_stmt );
- $this->mFieldInfoCache[$table.'.'.$field] = new ORAField( $res->fetchRow() );
- return $this->mFieldInfoCache[$table.'.'.$field];
+ $this->mFieldInfoCache["$table.$field"] = new ORAField( $res->fetchRow() );
+ return $this->mFieldInfoCache["$table.$field"];
}
function begin( $fname = '' ) {