mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Fix a bug causing wrong charset used when inserting an attibute in
an XML table with DOMDOC. modified: storage/connect/domdoc.cpp - Add the flag HA_MUST_USE_TABLE_CONDITION_PUSHDOWN. modified: storage/connect/ha_connect.cc - Update version number modified: storage/connect/ha_connect.cc storage/connect/mysql-test/connect/r/xml.result
This commit is contained in:
@@ -618,8 +618,8 @@ bool DOMATTR::SetText(PGLOBAL g, char *txtp, int len)
|
||||
Len = len;
|
||||
} // endif len
|
||||
|
||||
if (!MultiByteToWideChar(CP_ACP, 0, txtp, strlen(txtp) + 1,
|
||||
Ws, Len + 1)) {
|
||||
if (!MultiByteToWideChar(CP_UTF8, 0, txtp, strlen(txtp) + 1,
|
||||
Ws, Len + 1)) {
|
||||
sprintf(g->Message, MSG(WS_CONV_ERR), txtp);
|
||||
return true;
|
||||
} // endif
|
||||
|
Reference in New Issue
Block a user