mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Bug fixed: Column charset were not handled on read.
Modified: ha_connect.cc (MakeRecord) Moved PlgAllocResult to plgdbutl.cpp Modified: mycat.cpp plgdbutl.cpp Continuing implementing the "catalog" tables (ex "info"). Already existing were the ODBC data source table and the WMI column info table. The common way to handle them was modified to enable each table types to send personalized data. Now takes care of all existing catalog functions for table types that can retrieve and use such information. Modified: ha_connect.cc odbconn.cpp tabodbc.h tabodbc.cpp tabfmt.h tabfmt.cpp tabmysql.h tabmysql.cpp tabwmi.h tabwmi.cpp myconn.h myconn.cpp filamdbf.cpp plgdbsem.h reldef.h reldef.cpp tabdos.h tabdos.cpp tabfix.h xtable.h table.cpp
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/************* TabMySQL C++ Program Source Code File (.CPP) *************/
|
||||
/* PROGRAM NAME: TABMYSQL */
|
||||
/* ------------- */
|
||||
/* Version 1.5 */
|
||||
/* Version 1.6 */
|
||||
/* */
|
||||
/* AUTHOR: */
|
||||
/* ------- */
|
||||
@@ -105,7 +105,11 @@ bool MYSQLDEF::DefineAM(PGLOBAL g, LPCSTR am, int poff)
|
||||
/***********************************************************************/
|
||||
PTDB MYSQLDEF::GetTable(PGLOBAL g, MODE m)
|
||||
{
|
||||
return new(g) TDBMYSQL(this);
|
||||
if (Catfunc == 'C')
|
||||
return new(g) TDBMCL(this);
|
||||
else
|
||||
return new(g) TDBMYSQL(this);
|
||||
|
||||
} // end of GetTable
|
||||
|
||||
/* ------------------------------------------------------------------- */
|
||||
@@ -859,3 +863,26 @@ void MYSQLCOL::WriteColumn(PGLOBAL g)
|
||||
} // endif Prep
|
||||
|
||||
} // end of WriteColumn
|
||||
|
||||
/* ---------------------------TDBMCL class --------------------------- */
|
||||
|
||||
/***********************************************************************/
|
||||
/* TDBMCL class constructor. */
|
||||
/***********************************************************************/
|
||||
TDBMCL::TDBMCL(PMYDEF tdp) : TDBCAT(tdp)
|
||||
{
|
||||
Host = tdp->Hostname;
|
||||
Db = tdp->Database;
|
||||
Tab = tdp->Tabname;
|
||||
User = tdp->Username;
|
||||
Pwd = tdp->Password;
|
||||
Port = tdp->Portnumber;
|
||||
} // end of TDBMCL constructor
|
||||
|
||||
/***********************************************************************/
|
||||
/* GetResult: Get the list the MYSQL table columns. */
|
||||
/***********************************************************************/
|
||||
PQRYRES TDBMCL::GetResult(PGLOBAL g)
|
||||
{
|
||||
return MyColumns(g, Host, Db, User, Pwd, Tab, NULL, Port, false, false);
|
||||
} // end of GetResult
|
||||
|
Reference in New Issue
Block a user