mirror of
https://github.com/MariaDB/server.git
synced 2025-11-28 17:36:30 +03:00
Fix info cardinality for catalog tables.
Was returning 0, which caused an assert error when retreiving records. modified: storage/connect/connect.cc modified: storage/connect/xtable.h Add the create and insert possibility to zipped tables modified: storage/connect/domdoc.cpp modified: storage/connect/domdoc.h modified: storage/connect/filamzip.cpp modified: storage/connect/filamzip.h modified: storage/connect/ha_connect.c modified: storage/connect/plgdbutl.cpp modified: storage/connect/plgxml.cpp modified: storage/connect/plgxml.h modified: storage/connect/tabdos.cpp modified: storage/connect/tabdos.h modified: storage/connect/tabfmt.cpp modified: storage/connect/tabfmt.h modified: storage/connect/tabjson.cpp modified: storage/connect/tabxml.cpp modified: storage/connect/tabzip.cpp modified: storage/connect/tabzip.h Fix skipping header record for mulentries zipped CSV tabled modified: storage/connect/filamap.cpp Accept M (memo) column type for DBF tables Fix miscalculation of Blksize when LRECL was replaced by DBF LRECL modified: storage/connect/filamdbf.cpp Change the names of GZ compress classes (not to be confused with ZIP) modified: storage/connect/filamgz.cpp modified: storage/connect/filamgz.h add trace in PlugSetPath modified: storage/connect/plugutil.c Add tests fir ZIP added: storage/connect/mysql-test/connect/r/xml_zip.result added: storage/connect/mysql-test/connect/r/zip.result added: storage/connect/mysql-test/connect/std_data/bios.json added: storage/connect/mysql-test/connect/std_data/xsample2.xml added: storage/connect/mysql-test/connect/t/have_zip.inc added: storage/connect/mysql-test/connect/t/xml_zip.test added: storage/connect/mysql-test/connect/t/zip.test
This commit is contained in:
@@ -116,7 +116,9 @@ bool DOMDOC::ParseFile(PGLOBAL g, char *fn)
|
||||
// Parse an in memory document
|
||||
char *xdoc = GetMemDoc(g, fn);
|
||||
|
||||
b = (xdoc) ? (bool)Docp->loadXML((_bstr_t)xdoc) : false;
|
||||
// This is not equivalent to load for UTF8 characters
|
||||
// It is why get node content is not the same
|
||||
b = (xdoc) ? (bool)Docp->loadXML((_bstr_t)xdoc) : false;
|
||||
} else
|
||||
// Load the document
|
||||
b = (bool)Docp->load((_bstr_t)fn);
|
||||
@@ -266,6 +268,7 @@ DOMNODE::DOMNODE(PXDOC dp, MSXML2::IXMLDOMNodePtr np) : XMLNODE(dp)
|
||||
Nodep = np;
|
||||
Ws = NULL;
|
||||
Len = 0;
|
||||
Zip = (bool)dp->zip;
|
||||
} // end of DOMNODE constructor
|
||||
|
||||
/******************************************************************/
|
||||
@@ -316,8 +319,10 @@ RCODE DOMNODE::GetContent(PGLOBAL g, char *buf, int len)
|
||||
RCODE rc = RC_OK;
|
||||
|
||||
// Nodep can be null for a missing HTML table column
|
||||
if (Nodep) {
|
||||
if (!WideCharToMultiByte(CP_UTF8, 0, Nodep->text, -1,
|
||||
if (Nodep) {
|
||||
if (Zip) {
|
||||
strcpy(buf, Nodep->text);
|
||||
} else if (!WideCharToMultiByte(CP_UTF8, 0, Nodep->text, -1,
|
||||
buf, len, NULL, NULL)) {
|
||||
DWORD lsr = GetLastError();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user