Commit ca024d1c authored by Olivier Bertrand's avatar Olivier Bertrand

- Correct misplaced parenthesis in last change

modified:
  storage/connect/ha_connect.cc

- Tdbp must be assigned before calling PRX column init

modified:
  storage/connect/tabtbl.cpp
parent 38a5bb2c
...@@ -1094,9 +1094,9 @@ PTDB ha_connect::GetTDB(PGLOBAL g) ...@@ -1094,9 +1094,9 @@ PTDB ha_connect::GetTDB(PGLOBAL g)
table_name= GetTableName(); table_name= GetTableName();
if (!xp->CheckQuery(valid_query_id && tdbp if (!xp->CheckQuery(valid_query_id) && tdbp
&& !stricmp(tdbp->GetName(), table_name) && !stricmp(tdbp->GetName(), table_name)
&& tdbp->GetMode() == xmod)) { && tdbp->GetMode() == xmod) {
tp= tdbp; tp= tdbp;
tp->SetMode(xmod); tp->SetMode(xmod);
} else if ((tp= CntGetTDB(g, table_name, xmod, this))) } else if ((tp= CntGetTDB(g, table_name, xmod, this)))
......
...@@ -216,7 +216,6 @@ bool TDBTBL::InitTableList(PGLOBAL g) ...@@ -216,7 +216,6 @@ bool TDBTBL::InitTableList(PGLOBAL g)
{ {
int n; int n;
PTABLE tp, tabp; PTABLE tp, tabp;
PTDBASE tdbp;
PCOL colp; PCOL colp;
PTBLDEF tdp = (PTBLDEF)To_Def; PTBLDEF tdp = (PTBLDEF)To_Def;
...@@ -227,7 +226,7 @@ bool TDBTBL::InitTableList(PGLOBAL g) ...@@ -227,7 +226,7 @@ bool TDBTBL::InitTableList(PGLOBAL g)
tabp = new(g) XTAB(tp); tabp = new(g) XTAB(tp);
// Get the table description block of this table // Get the table description block of this table
if (!(tdbp = GetSubTable(g, tabp))) { if (!(Tdbp = GetSubTable(g, tabp))) {
if (++Nbf > Maxerr) if (++Nbf > Maxerr)
return TRUE; // Error return return TRUE; // Error return
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment