~maria-captains/maria/10.0

« back to all changes in this revision

Viewing changes to storage/connect/plgcnx.h

  • Committer: Olivier Bertrand
  • Date: 2014-02-03 15:14:13 UTC
  • mto: This revision was merged to the branch mainline in revision 3984.
  • Revision ID: bertrandop@gmail.com-20140203151413-ps3oglvhb4lksxxy
This is a major update of CONNECT that goes from version 1.1 to 1.2
===================================================================
- Implement a first support of the ALTER TABLE command. This fixes MDEV-5440
  but does much more than only that. See the details of how ALTER is supported
  in the new documentation and also in MDEV-5440 comment.
  This is done principally by implementing for CONNECT the virtual function
  check_if_supported_inplace_alter.
modified:
  storage/connect/connect.cc
  storage/connect/global.h
  storage/connect/ha_connect.cc
  storage/connect/ha_connect.h
  storage/connect/mysql-test/connect/r/bin.result
  storage/connect/mysql-test/connect/r/csv.result
  storage/connect/mysql-test/connect/r/dbf.result
  storage/connect/mysql-test/connect/r/dir.result
  storage/connect/mysql-test/connect/r/fix.result
  storage/connect/mysql-test/connect/r/index.result
  storage/connect/mysql-test/connect/r/ini.result
  storage/connect/mysql-test/connect/r/occur.result
  storage/connect/mysql-test/connect/r/pivot.result
  storage/connect/mysql-test/connect/r/vec.result
  storage/connect/mysql-test/connect/t/dbf.test
  storage/connect/plugutil.c
  storage/connect/user_connect.cc

- Fixes the tabname/table_name issue for XML tables. Implement
  multiple files XML tables.
modified:
  storage/connect/tabxml.cpp
  storage/connect/tabxml.h

- Set to varchar(256) the fields of catalog tables stored
  as STRBLK's (had length 0 --> CHAR(1))
  Add the GetCharString function to the VALBLK class
modified:
  storage/connect/ha_connect.cc
  storage/connect/valblk.cpp
  storage/connect/valblk.h
  storage/connect/value.cpp

- Translate CONNECT error messages to system_charset
  to avoid truncation on not ASCII characters.
modified:
  storage/connect/ha_connect.cc

- Update version number
modified:
  storage/connect/ha_connect.cc
  storage/connect/mysql-test/connect/r/xml.result

- Move the TDBASE::data_charset body from xtable.h to table.cpp.
  (dont' remember why)
modified:
  storage/connect/table.cpp
  storage/connect/xtable.h

- Other modifications are to enhance the support of OEM tables.
  In particular, they can now provide column definition in dicovery.
modified:
  storage/connect/colblk.h
  storage/connect/global.h
  storage/connect/ha_connect.cc
  storage/connect/mycat.cc
  storage/connect/plgcnx.h
  storage/connect/plgdbsem.h
  storage/connect/xtable.h

- Or to add or modify tracing.
modified:
  storage/connect/filamtxt.cpp
  storage/connect/ha_connect.cc
  storage/connect/plgdbutl.cpp
  storage/connect/tabfix.cpp
  storage/connect/tabmysql.cpp

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**************************************************************************/
2
2
/*  PLGCNX.H                                                              */
3
 
/*  Copyright to the author: Olivier Bertrand         2000-2012           */
 
3
/*  Copyright to the author: Olivier Bertrand         2000-2014           */
4
4
/*                                                                        */
5
5
/*  This is the connection DLL's declares.                                */
6
6
/**************************************************************************/
62
62
           INDX_SIZE,                /* Index of returned data size field */
63
63
           INDX_MAX};                /* Size of info array                */
64
64
 
 
65
#ifdef NOT_USED
65
66
/**************************************************************************/
66
67
/*  Internal message types.                                               */
67
68
/**************************************************************************/
97
98
/**************************************************************************/
98
99
enum CKEYS {K_ProgMsg, K_Lang, K_ActiveDB, K_Cmax};
99
100
enum LKEYS {K_NBcol, K_NBlin, K_CurPos, K_RC, K_Result, K_Elapsed,
100
 
            K_Continued, K_Maxsize, K_Lmax, K_Maxcol,
 
101
            K_Continued, K_Maxsize, K_Affrows, K_Lmax, K_Maxcol,
101
102
            K_Maxres, K_Maxlin, K_NBparm};
102
 
enum NKEYS {K_Type, K_Length, K_Prec, K_DataLen, K_Nmax};
 
103
enum NKEYS {K_Type, K_Length, K_Prec, K_DataLen, K_Unsigned, K_Nmax};
103
104
 
104
105
/**************************************************************************/
105
106
/*  Result description structures.                                        */
157
158
#define XTRN
158
159
#endif
159
160
 
160
 
#ifdef NOT_USED
161
161
//#if !defined(NO_FUNC)
162
162
#ifdef __cplusplus
163
163
extern "C" {
172
172
XTRN bool CNXFUNC(PLGGetIntValue)(CNXKEY, int *, int);
173
173
XTRN bool CNXFUNC(PLGGetColValue) (CNXKEY, int *, int, int);
174
174
XTRN bool CNXFUNC(PLGGetMessage)  (CNXKEY, char *, int);
175
 
XTRN bool CNXFUNC(PLGGetHeader)   (CNXKEY, char *, int, int);
 
175
XTRN bool CNXFUNC(PLGGetHeader)   (CNXKEY, char *, int, int, int);
176
176
 
177
177
#ifdef __cplusplus
178
178
}