Removed old commented out code that is not needed (cleanup)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31706
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
int i;
wxString sqlStmt;
wxString s;
int i;
wxString sqlStmt;
wxString s;
// Calculate the maximum size of the concatenated
// keys for use with wxDbGrid
// Calculate the maximum size of the concatenated
// keys for use with wxDbGrid
{
if (colDefs[i].KeyField)
{
{
if (colDefs[i].KeyField)
{
m_keysize += colDefs[i].SzDataObj;
}
}
m_keysize += colDefs[i].SzDataObj;
}
}
if (needComma)
sqlStmt += wxT(",");
sqlStmt += pDb->SQLColumnName(colDefs[i].ColName);
if (needComma)
sqlStmt += wxT(",");
sqlStmt += pDb->SQLColumnName(colDefs[i].ColName);
-// sqlStmt += colDefs[i].ColName;
needComma = true;
}
needComma = false;
needComma = true;
}
needComma = false;
{
pSqlStmt += wxT(",");
pSqlStmt += pDb->SQLTableName(queryTableName);
{
pSqlStmt += wxT(",");
pSqlStmt += pDb->SQLTableName(queryTableName);
-// pSqlStmt += queryTableName;
pSqlStmt += wxT(".ROWID");
}
else
pSqlStmt += wxT(".ROWID");
}
else
{
switch (colDefs[colNumber].SqlCtype)
{
{
switch (colDefs[colNumber].SqlCtype)
{
+#if wxUSE_UNICODE
+ #if defined(SQL_WCHAR)
+ #endif
+ #if defined(SQL_WVARCHAR)
case SQL_CHAR:
case SQL_VARCHAR:
val = (wxChar *)(colDefs[colNumber].PtrDataObj);
case SQL_CHAR:
case SQL_VARCHAR:
val = (wxChar *)(colDefs[colNumber].PtrDataObj);
switch (colDefs[colNumber].SqlCtype)
{
switch (colDefs[colNumber].SqlCtype)
{
+#if wxUSE_UNICODE
+ #if defined(SQL_WCHAR)
+ #endif
+ #if defined(SQL_WVARCHAR)
case SQL_CHAR:
case SQL_VARCHAR:
csstrncpyt((wxChar *)(colDefs[colNumber].PtrDataObj),
case SQL_CHAR:
case SQL_VARCHAR:
csstrncpyt((wxChar *)(colDefs[colNumber].PtrDataObj),