DNAMES: column names do not work with non-trivial encodings

Description

A column created with a name in koi8r cannot be found:

1 2 3 4 5 6 7 8 set names koi8r; select column_exists(column_create('имя','value'),'имя'); # +---------------------------------------------------------+ # | column_exists(column_create('имя','value'),'имя') | # +---------------------------------------------------------+ # | 0 | # +---------------------------------------------------------+

At the same time, for values it works:

1 2 3 4 5 6 7 set names koi8r; select column_get(column_create('name','значение'),'name' as char(16)) = 'значение'; +----------------------------------------------------------------------------------------------+ | column_get(column_create('name','значение'),'name' as char(16)) = 'значение' | +----------------------------------------------------------------------------------------------+ | 1 | +----------------------------------------------------------------------------------------------+

bzr version-info

1 2 3 4 revision-id: elenst@ubuntu11.home-20120813090607-jtuq5p0umts16h5h date: 2012-08-13 13:06:07 +0400 build-date: 2012-08-16 05:11:01 +0400 revno: 3490

Environment

None

Status

Assignee

Oleksandr Byelkin

Reporter

Elena Stepanova

Labels

None

External issue ID

None

External issue ID

None

Fix versions

Priority

Minor
Configure