mirror of
https://github.com/MariaDB/server.git
synced 2025-04-26 08:59:57 +02:00

When null and the column is NOT NULL the value was not reset. modified: storage/connect/tabjson.cpp Fix converting bstr_t string to set error message modified: storage/connect/domdoc.cpp Fix MDEV-12768: -Wformat-overflow compile warnings modified: storage/connect/global.h modified: storage/connect/jsonudf.cpp modified: storage/connect/plugutil.cpp modified: storage/connect/tabvct.cpp Typo (in external_lock) modified: storage/connect/ha_connect.cc Remove some warnings modified: storage/connect/odbconn.cpp modified: storage/connect/tabmysql.cpp Add MEM_RESERVE flag to virtualAlloc modified: storage/connect/plgdbutl.cpp Fix MDEV-12573: Accept=1 may show incorrect value for NULL column in CONNECT TBL modified: storage/connect/tabutil.cpp Fix wrong setting of key size when greater than 2G modified: storage/connect/xindex.cpp Fixing MDEV-12149: compile errors on Windows with /Zc:strictStrings Introduce typedef PCSZ and replace PSZ by it where it matters All done on CONNECT but compile still fails because of an included system file modified: storage/connect/array.cpp modified: storage/connect/catalog.h modified: storage/connect/colblk.cpp modified: storage/connect/colblk.h modified: storage/connect/connect.cc modified: storage/connect/domdoc.cpp modified: storage/connect/domdoc.h modified: storage/connect/filamdbf.cpp modified: storage/connect/filamdbf.h modified: storage/connect/filamfix.cpp modified: storage/connect/filamgz.cpp modified: storage/connect/filamtxt.h modified: storage/connect/filamvct.cpp modified: storage/connect/filamvct.h modified: storage/connect/filamzip.cpp modified: storage/connect/filamzip.h modified: storage/connect/ha_connect.cc modified: storage/connect/ha_connect.h modified: storage/connect/jdbccat.h modified: storage/connect/jdbconn.cpp modified: storage/connect/jdbconn.h modified: storage/connect/json.cpp modified: storage/connect/json.h modified: storage/connect/jsonudf.cpp modified: storage/connect/jsonudf.h modified: storage/connect/libdoc.cpp modified: storage/connect/macutil.cpp modified: storage/connect/myconn.cpp modified: storage/connect/myutil.cpp modified: storage/connect/myutil.h modified: storage/connect/odbccat.h modified: storage/connect/odbconn.cpp modified: storage/connect/odbconn.h modified: storage/connect/os.h modified: storage/connect/plgdbsem.h modified: storage/connect/plgdbutl.cpp modified: storage/connect/plgxml.cpp modified: storage/connect/plgxml.h modified: storage/connect/plugutil.cpp modified: storage/connect/preparse.h modified: storage/connect/reldef.cpp modified: storage/connect/reldef.h modified: storage/connect/tabdos.cpp modified: storage/connect/tabdos.h modified: storage/connect/tabext.cpp modified: storage/connect/tabext.h modified: storage/connect/tabfix.cpp modified: storage/connect/tabfix.h modified: storage/connect/tabfmt.cpp modified: storage/connect/tabfmt.h modified: storage/connect/tabjdbc.cpp modified: storage/connect/tabjdbc.h modified: storage/connect/tabjson.cpp modified: storage/connect/tabjson.h modified: storage/connect/table.cpp modified: storage/connect/tabmac.cpp modified: storage/connect/tabmul.cpp modified: storage/connect/tabmul.h modified: storage/connect/tabmysql.cpp modified: storage/connect/tabmysql.h modified: storage/connect/tabodbc.cpp modified: storage/connect/tabodbc.h modified: storage/connect/tabpivot.cpp modified: storage/connect/tabpivot.h modified: storage/connect/tabsys.cpp modified: storage/connect/tabsys.h modified: storage/connect/tabutil.cpp modified: storage/connect/tabutil.h modified: storage/connect/tabvir.cpp modified: storage/connect/tabvir.h modified: storage/connect/tabwmi.cpp modified: storage/connect/tabwmi.h modified: storage/connect/tabxml.cpp modified: storage/connect/tabxml.h modified: storage/connect/tabzip.cpp modified: storage/connect/tabzip.h modified: storage/connect/valblk.cpp modified: storage/connect/valblk.h modified: storage/connect/value.cpp modified: storage/connect/value.h modified: storage/connect/xindex.cpp modified: storage/connect/xobject.cpp modified: storage/connect/xobject.h modified: storage/connect/xtable.h Fix MDEV-12603 Insert replaces values in ZIP file modified: storage/connect/filamzip.cpp modified: storage/connect/filamzip.h Fix MDEV-12686 Handle null in json Fix MDEV-12688 Insert does not handle type TINYINT modified: storage/connect/json.cpp modified: storage/connect/tabjson.cpp Fix MDEV-12653 Cannot add index for ZIP CONNECT table modified: storage/connect/filamzip.cpp modified: storage/connect/ha_connect.cc modified: storage/connect/tabdos.cpp modified: storage/connect/tabfmt.cpp modified: storage/connect/tabjson.cpp modified: storage/connect/xindex.cpp
115 lines
3.7 KiB
C++
115 lines
3.7 KiB
C++
/* Copyright (C) Olivier Bertrand 2004 - 2015
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; version 2 of the License.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */
|
|
|
|
/**************** MYCAT H Declares Source Code File (.H) ***************/
|
|
/* Name: MYCAT.H Version 2.3 */
|
|
/* */
|
|
/* This file contains the CONNECT plugin MYCAT class definitions. */
|
|
/***********************************************************************/
|
|
#ifndef __MYCAT__H
|
|
#define __MYCAT__H
|
|
|
|
#include "block.h"
|
|
#include "catalog.h"
|
|
|
|
//typedef struct ha_table_option_struct TOS, *PTOS;
|
|
|
|
/**
|
|
structure for CREATE TABLE options (table options)
|
|
|
|
These can be specified in the CREATE TABLE:
|
|
CREATE TABLE ( ... ) {...here...}
|
|
*/
|
|
struct ha_table_option_struct {
|
|
const char *type;
|
|
const char *filename;
|
|
const char *optname;
|
|
const char *tabname;
|
|
const char *tablist;
|
|
const char *dbname;
|
|
const char *separator;
|
|
//const char *connect;
|
|
const char *qchar;
|
|
const char *module;
|
|
const char *subtype;
|
|
const char *catfunc;
|
|
const char *srcdef;
|
|
const char *colist;
|
|
const char *oplist;
|
|
const char *data_charset;
|
|
ulonglong lrecl;
|
|
ulonglong elements;
|
|
//ulonglong estimate;
|
|
ulonglong multiple;
|
|
ulonglong header;
|
|
ulonglong quoted;
|
|
ulonglong ending;
|
|
ulonglong compressed;
|
|
bool mapped;
|
|
bool huge;
|
|
bool split;
|
|
bool readonly;
|
|
bool sepindex;
|
|
bool zipped;
|
|
};
|
|
|
|
// Possible value for catalog functions
|
|
#define FNC_NO (1 << 0) // Not a catalog table
|
|
#define FNC_COL (1 << 1) // Column catalog function
|
|
#define FNC_TABLE (1 << 2) // Table catalog function
|
|
#define FNC_DSN (1 << 3) // Data Source catalog function
|
|
#define FNC_DRIVER (1 << 4) // Column catalog function
|
|
#define FNC_NIY (1 << 5) // Catalog function NIY
|
|
|
|
typedef class ha_connect *PHC;
|
|
|
|
char *GetPluginDir(void);
|
|
TABTYPE GetTypeID(const char *type);
|
|
bool IsFileType(TABTYPE type);
|
|
bool IsExactType(TABTYPE type);
|
|
bool IsTypeNullable(TABTYPE type);
|
|
bool IsTypeFixed(TABTYPE type);
|
|
bool IsTypeIndexable(TABTYPE type);
|
|
int GetIndexType(TABTYPE type);
|
|
uint GetFuncID(const char *func);
|
|
|
|
/***********************************************************************/
|
|
/* MYCAT: class for managing the CONNECT plugin DB items. */
|
|
/***********************************************************************/
|
|
class MYCAT : public CATALOG {
|
|
public:
|
|
MYCAT(PHC hc); // Constructor
|
|
|
|
// Implementation
|
|
PHC GetHandler(void) {return Hc;}
|
|
void SetHandler(PHC hc) {Hc= hc;}
|
|
|
|
// Methods
|
|
void Reset(void);
|
|
bool StoreIndex(PGLOBAL, PTABDEF) {return false;} // Temporary
|
|
PRELDEF GetTableDesc(PGLOBAL g, PTABLE tablep,
|
|
LPCSTR type, PRELDEF *prp = NULL);
|
|
PTDB GetTable(PGLOBAL g, PTABLE tablep,
|
|
MODE mode = MODE_READ, LPCSTR type = NULL);
|
|
void ClearDB(PGLOBAL g);
|
|
|
|
protected:
|
|
PRELDEF MakeTableDesc(PGLOBAL g, PTABLE tablep, LPCSTR am);
|
|
|
|
// Members
|
|
ha_connect *Hc; // The Connect handler
|
|
}; // end of class MYCAT
|
|
|
|
#endif /* __MYCAT__H */
|