Patch level :2.2 2006 399
Files correlati : Ricompilazione Demo : [ ] Commento :sistemati errori legati al nuovo wxWidgets git-svn-id: svn://10.65.10.50/trunk@13937 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
aeb220ba56
commit
b771db4b41
@ -258,10 +258,10 @@ void TTable::GetRecordLength(wxOutputStream& out)
|
|||||||
len += 8;
|
len += 8;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (ci.bufferLength > 128) // It's a MEMO!
|
if (ci.bufferSize > 128) // It's a MEMO!
|
||||||
len += 10;
|
len += 10;
|
||||||
else
|
else
|
||||||
len += ci.bufferLength;
|
len += ci.bufferSize;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -302,7 +302,7 @@ bool TTable::CreateIndex(int index, const TXmlItem& fields)
|
|||||||
if (i >= 0)
|
if (i >= 0)
|
||||||
{
|
{
|
||||||
const bool upper = !field.GetAttr("Upper").IsEmpty();
|
const bool upper = !field.GetAttr("Upper").IsEmpty();
|
||||||
ndx.AddKeyField(i, m_ci[i].bufferLength, upper);
|
ndx.AddKeyField(i, m_ci[i].bufferSize, upper);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -367,7 +367,7 @@ TTable::TTable(wxDb* db, const wxString& strName)
|
|||||||
for (UWORD i = 0; i < m_nColumns; i++)
|
for (UWORD i = 0; i < m_nColumns; i++)
|
||||||
{
|
{
|
||||||
const wxDbColInf& ci = m_ci[i];
|
const wxDbColInf& ci = m_ci[i];
|
||||||
const int length = ci.bufferLength+1;
|
const int length = ci.bufferSize+1;
|
||||||
m_field[i] = new char[length];
|
m_field[i] = new char[length];
|
||||||
memset(m_field[i], 0, length);
|
memset(m_field[i], 0, length);
|
||||||
int nSqlType = ci.sqlDataType;
|
int nSqlType = ci.sqlDataType;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user