Skip to content

Commit 1e93268

Browse files
committed
Fixed bug #8253 : Incorrect handling of non-ASCII object names in CREATE MAPPING statement
1 parent 0799c12 commit 1e93268

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/dsql/DdlNodes.epp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10628,6 +10628,7 @@ void MappingNode::runInSecurityDb(SecDbContext* secDbContext)
1062810628
ddl += ' ';
1062910629
if (from)
1063010630
{
10631+
ddl += "_utf8 ";
1063110632
addItem(ddl, fromUtf8.c_str(), '\'');
1063210633
ddl += ' ';
1063310634
}

src/dsql/parse.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7448,7 +7448,7 @@ map_from_symbol_name
74487448
%type <intlStringPtr> map_logoninfo
74497449
map_logoninfo
74507450
: sql_string
7451-
| valid_symbol_name { $$ = newNode<IntlString>($1->c_str()); }
7451+
| valid_symbol_name { $$ = newIntlString($1->c_str(), metadataCharSet->getName()); }
74527452
;
74537453

74547454
%type map_using(<mappingNode>)

0 commit comments

Comments
 (0)