mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Merge branch 'connect/10.2' into 10.2
This commit is contained in:
commit
1d411a8a44
8 changed files with 15 additions and 24 deletions
|
@ -84,8 +84,8 @@ DOMDOC::DOMDOC(char *nsl, char *nsdf, char *enc, PFBLOCK fp)
|
|||
: XMLDOCUMENT(nsl, nsdf, enc)
|
||||
{
|
||||
assert (!fp || fp->Type == TYPE_FB_XML);
|
||||
Docp = (fp) ? ((PXBLOCK)fp)->Docp : NULL;
|
||||
Nlist = NULL;
|
||||
Docp = (fp) ? ((PXBLOCK)fp)->Docp : (MSXML2::IXMLDOMDocumentPtr)NULL;
|
||||
Nlist = NULL;
|
||||
Hr = 0;
|
||||
} // end of DOMDOC constructor
|
||||
|
||||
|
|
|
@ -427,7 +427,7 @@ int TXTFAM::DeleteSortedRows(PGLOBAL g)
|
|||
|
||||
for (i = 0; i < Posar->GetNval(); i++) {
|
||||
if ((irc = InitDelete(g, Posar->GetIntValue(ix[i]),
|
||||
Sosar->GetIntValue(ix[i])) == RC_FX))
|
||||
Sosar->GetIntValue(ix[i]))) == RC_FX)
|
||||
goto err;
|
||||
|
||||
// Now delete the sorted rows
|
||||
|
|
|
@ -107,13 +107,9 @@
|
|||
|
||||
#define MYSQL_SERVER 1
|
||||
#define DONT_DEFINE_VOID
|
||||
#include "sql_class.h"
|
||||
#include "create_options.h"
|
||||
#include "mysql_com.h"
|
||||
#include "field.h"
|
||||
#include <my_global.h>
|
||||
#include "sql_parse.h"
|
||||
#include "sql_base.h"
|
||||
#include <sys/stat.h>
|
||||
#include "sql_partition.h"
|
||||
#undef OFFSET
|
||||
|
||||
|
@ -432,7 +428,7 @@ handlerton *connect_hton= NULL;
|
|||
uint GetTraceValue(void)
|
||||
{return (uint)(connect_hton ? THDVAR(current_thd, xtrace) : 0);}
|
||||
bool ExactInfo(void) {return THDVAR(current_thd, exact_info);}
|
||||
bool CondPushEnabled(void) {return THDVAR(current_thd, cond_push);}
|
||||
static bool CondPushEnabled(void) {return THDVAR(current_thd, cond_push);}
|
||||
USETEMP UseTemp(void) {return (USETEMP)THDVAR(current_thd, use_tempfile);}
|
||||
int GetConvSize(void) {return THDVAR(current_thd, conv_size);}
|
||||
TYPCONV GetTypeConv(void) {return (TYPCONV)THDVAR(current_thd, type_conv);}
|
||||
|
@ -2813,7 +2809,7 @@ PCFIL ha_connect::CheckCond(PGLOBAL g, PCFIL filp, const Item *cond)
|
|||
htrc("Cond type=%d\n", cond->type());
|
||||
|
||||
if (cond->type() == COND::COND_ITEM) {
|
||||
char *pb0, *pb1, *pb2, *ph0, *ph1, *ph2;
|
||||
char *pb0, *pb1, *pb2, *ph0= 0, *ph1= 0, *ph2= 0;
|
||||
bool bb = false, bh = false;
|
||||
Item_cond *cond_item= (Item_cond *)cond;
|
||||
|
||||
|
@ -5570,7 +5566,7 @@ static int connect_assisted_discovery(handlerton *, THD* thd,
|
|||
} // endif p
|
||||
|
||||
} else if (ttp != TAB_ODBC || !(fnc & (FNC_TABLE | FNC_COL)))
|
||||
tab = table_s->table_name.str; // Default value
|
||||
tab = (char*)table_s->table_name.str; // Default value
|
||||
|
||||
} // endif tab
|
||||
|
||||
|
|
|
@ -1620,7 +1620,7 @@ static my_bool CheckMemory(PGLOBAL g, UDF_INIT *initid, UDF_ARGS *args, uint n,
|
|||
if (AllocSarea(g, ml)) {
|
||||
char errmsg[MAX_STR];
|
||||
|
||||
snprintf(errmsg, sizeof(errmsg)-1, MSG(WORK_AREA), g->Message);
|
||||
snprintf(errmsg, sizeof(errmsg) - 1, MSG(WORK_AREA), g->Message);
|
||||
strcpy(g->Message, errmsg);
|
||||
return true;
|
||||
} // endif SareaAlloc
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
/* ------------- */
|
||||
/* Version 1.6 */
|
||||
/* */
|
||||
/* Author: Olivier Bertrand 2012 - 2017 */
|
||||
/* Author: Olivier Bertrand 2012 - 2018 */
|
||||
/* */
|
||||
/* WHAT THIS PROGRAM DOES: */
|
||||
/* ----------------------- */
|
||||
|
@ -28,20 +28,13 @@
|
|||
/***********************************************************************/
|
||||
/* Include relevant MariaDB header file. */
|
||||
/***********************************************************************/
|
||||
#include <my_config.h>
|
||||
#define DONT_DEFINE_VOID
|
||||
#include <my_global.h>
|
||||
|
||||
#if defined(__WIN__)
|
||||
//#include <windows.h>
|
||||
//#include <sqlext.h>
|
||||
#elif defined(UNIX)
|
||||
#include <sys/types.h>
|
||||
#if defined(UNIX)
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#endif
|
||||
#define DONT_DEFINE_VOID
|
||||
//#include <mysql/plugin.h>
|
||||
#include "handler.h"
|
||||
#undef OFFSET
|
||||
|
||||
|
|
|
@ -286,7 +286,7 @@ bool TDBEXT::MakeSrcdef(PGLOBAL g)
|
|||
char *catp = strstr(Srcdef, "%s");
|
||||
|
||||
if (catp) {
|
||||
char *fil1, *fil2;
|
||||
char *fil1 = 0, *fil2;
|
||||
PCSZ ph = ((EXTDEF*)To_Def)->Phpos;
|
||||
|
||||
if (!ph)
|
||||
|
|
|
@ -16,6 +16,7 @@ typedef class JSONDEF *PJDEF;
|
|||
typedef class TDBJSON *PJTDB;
|
||||
typedef class JSONCOL *PJCOL;
|
||||
class TDBJSN;
|
||||
PQRYRES JSONColumns(PGLOBAL g, PCSZ db, PCSZ dsn, PTOS topt, bool info);
|
||||
|
||||
/***********************************************************************/
|
||||
/* The JSON tree node. Can be an Object or an Array. */
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
#define DONT_DEFINE_VOID
|
||||
#define MYSQL_SERVER
|
||||
#include <my_global.h>
|
||||
#include "sql_class.h"
|
||||
#undef OFFSET
|
||||
|
||||
|
|
Loading…
Reference in a new issue