mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Fix bug when closing some table types
modified: storage/connect/tabmul.cpp storage/connect/tabmysql.cpp storage/connect/tabodbc.cpp - Add Insert support for ODBC table Add the send command feature to ODBC tables (not documented yet) modified: storage/connect/ha_connect.cc storage/connect/myconn.cpp storage/connect/odbccat.h storage/connect/odbconn.cpp storage/connect/odbconn.h storage/connect/tabodbc.cpp storage/connect/tabodbc.h
This commit is contained in:
@@ -1043,18 +1043,20 @@ int TDBMYSQL::DeleteDB(PGLOBAL g, int irc)
|
||||
/***********************************************************************/
|
||||
void TDBMYSQL::CloseDB(PGLOBAL g)
|
||||
{
|
||||
if (Mode == MODE_INSERT) {
|
||||
char cmd[64];
|
||||
int w;
|
||||
PDBUSER dup = PlgGetUser(g);
|
||||
if (Myc.Connected()) {
|
||||
if (Mode == MODE_INSERT) {
|
||||
char cmd[64];
|
||||
int w;
|
||||
PDBUSER dup = PlgGetUser(g);
|
||||
|
||||
dup->Step = "Enabling indexes";
|
||||
sprintf(cmd, "ALTER TABLE `%s` ENABLE KEYS", Tabname);
|
||||
Myc.m_Rows = -1; // To execute the query
|
||||
m_Rc = Myc.ExecSQL(g, cmd, &w);
|
||||
} // endif m_Rc
|
||||
dup->Step = "Enabling indexes";
|
||||
sprintf(cmd, "ALTER TABLE `%s` ENABLE KEYS", Tabname);
|
||||
Myc.m_Rows = -1; // To execute the query
|
||||
m_Rc = Myc.ExecSQL(g, cmd, &w);
|
||||
} // endif m_Rc
|
||||
|
||||
Myc.Close();
|
||||
Myc.Close();
|
||||
} // endif Myc
|
||||
|
||||
if (trace)
|
||||
htrc("MySQL CloseDB: closing %s rc=%d\n", Name, m_Rc);
|
||||
|
Reference in New Issue
Block a user