Skip to content

Commit 7a9f01a

Browse files
committed
decode identifiers for column names in indexes
1 parent 795e5c4 commit 7a9f01a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib_sql_parser.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,9 +770,8 @@ function parse_index_columns(&$tokens, &$index){
770770
while (true){
771771

772772
$col = array(
773-
'name' => $tokens[0],
773+
'name' => $this->decode_identifier(array_shift($tokens)),
774774
);
775-
array_shift($tokens);
776775

777776
if ($tokens[0] == '(' && $tokens[2] == ')'){
778777
$col['length'] = $tokens[1];

0 commit comments

Comments
 (0)