mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Fix regression error for multiple 2 tables.
modified: storage/connect/tabmul.cpp - Fix regression error on field types. Cannot eliminate BINARY_FLAG that is on for DATE columns. Update result from dbf.test case. modified: storage/connect/ha_connect.cc storage/connect/mysql-test/connect/r/dbf.result
This commit is contained in:
@@ -125,14 +125,15 @@ PTDB TDBMUL::Duplicate(PGLOBAL g)
|
||||
bool TDBMUL::InitFileNames(PGLOBAL g)
|
||||
{
|
||||
#define PFNZ 4096
|
||||
#define FNSZ _MAX_DRIVE+_MAX_DIR+_MAX_FNAME+_MAX_EXT
|
||||
char *pfn[PFNZ];
|
||||
char *filename;
|
||||
int rc, n = 0;
|
||||
|
||||
if (trace)
|
||||
htrc("in InitFileName: fn[]=%d\n", _MAX_DRIVE+_MAX_DIR+_MAX_FNAME+_MAX_EXT);
|
||||
htrc("in InitFileName: fn[]=%d\n", FNSZ);
|
||||
|
||||
filename = (char*)PlugSubAlloc(g, NULL, _MAX_DRIVE+_MAX_DIR+_MAX_FNAME+_MAX_EXT);
|
||||
filename = (char*)PlugSubAlloc(g, NULL, FNSZ);
|
||||
|
||||
// The sub table may need to refer to the Table original block
|
||||
Tdbp->SetTable(To_Table); // Was not set at construction
|
||||
@@ -263,7 +264,7 @@ bool TDBMUL::InitFileNames(PGLOBAL g)
|
||||
return true;
|
||||
|
||||
while (n < PFNZ) {
|
||||
if (!fgets(filename, sizeof(filename), stream)) {
|
||||
if (!fgets(filename, FNSZ, stream)) {
|
||||
fclose(stream);
|
||||
break;
|
||||
} // endif fgets
|
||||
|
Reference in New Issue
Block a user