mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
All use of a character to represent table types or
catalog functions have been changed: Table_types are now internally represented be enum TABTYPE. Catalog function names are internally translated to a uint. The function GetTypeID was modified accordingly and a new function GetFuncID was implemented in mycat.cc. Modified: ha_connect.cc odbccat.h odbconn.cpp tabodbc.cpp tabfmt.cpp tabmysql.h tabmysql.cpp tabwmi.cpp mycat.h mycat.cc plgdbsem.h reldef.h tabdos.cpp rcmsg.h
This commit is contained in:
@@ -49,6 +49,7 @@
|
||||
/***********************************************************************/
|
||||
#include "global.h"
|
||||
#include "plgdbsem.h"
|
||||
#include "mycat.h"
|
||||
#include "filamap.h"
|
||||
#if defined(ZIP_SUPPORT)
|
||||
#include "filamzip.h"
|
||||
@@ -405,7 +406,7 @@ bool CSVDEF::DefineAM(PGLOBAL g, LPCSTR am, int poff)
|
||||
char buf[8];
|
||||
|
||||
// Double check correctness of offset values
|
||||
if (!Catfunc)
|
||||
if (Catfunc == FNC_NO)
|
||||
for (PCOLDEF cdp = To_Cols; cdp; cdp = cdp->GetNext())
|
||||
if (cdp->GetOffset() < 1) {
|
||||
strcpy(g->Message, MSG(BAD_OFFSET_VAL));
|
||||
@@ -441,7 +442,7 @@ PTDB CSVDEF::GetTable(PGLOBAL g, MODE mode)
|
||||
{
|
||||
PTDBASE tdbp;
|
||||
|
||||
if (Catfunc != 'C') {
|
||||
if (Catfunc != FNC_COL) {
|
||||
USETEMP tmp = PlgGetUser(g)->UseTemp;
|
||||
bool map = Mapped && mode != MODE_INSERT &&
|
||||
!(tmp != TMP_NO && mode == MODE_UPDATE) &&
|
||||
|
Reference in New Issue
Block a user