Skip to content

Commit

Permalink
[ibase]: Added supporting quite identifier(backward compatible)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/MDB2/trunk@326932 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
afz committed Aug 2, 2012
1 parent 1e0a786 commit b7b8131
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions MDB2/Driver/ibase.php
Expand Up @@ -58,7 +58,7 @@ class MDB2_Driver_ibase extends MDB2_Driver_Common

var $string_quoting = array('start' => "'", 'end' => "'", 'escape' => "'", 'escape_pattern' => '\\');

var $identifier_quoting = array('start' => '', 'end' => '', 'escape' => false);
var $identifier_quoting = array('start' => '"', 'end' => '"', 'escape' => false);

var $transaction_id = 0;

Expand Down Expand Up @@ -96,7 +96,7 @@ function __construct()
$this->supported['primary_key'] = true;
$this->supported['result_introspection'] = true;
$this->supported['prepared_statements'] = true;
$this->supported['identifier_quoting'] = false;
$this->supported['identifier_quoting'] = true;
$this->supported['pattern_escaping'] = true;
$this->supported['new_link'] = false;

Expand Down Expand Up @@ -262,7 +262,8 @@ function quoteIdentifier($str, $check_option = false)
if ($check_option && !$this->options['quote_identifier']) {
return $str;
}
return strtoupper($str);

return parent::quoteIdentifier(strtoupper($str), $check_option);
}

// }}}
Expand Down

0 comments on commit b7b8131

Please sign in to comment.