git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27249
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if (colDefs[columnIndex].Null)
colDefs[columnIndex].CbValue = SQL_NULL_DATA;
else
if (colDefs[columnIndex].Null)
colDefs[columnIndex].CbValue = SQL_NULL_DATA;
else
- if (colDefs[columnIndex].SqlCtype == SQL_C_BINARY)
- colDefs[columnIndex].CbValue = 0;
- else if (colDefs[columnIndex].SqlCtype == SQL_C_CHAR)
+ if (colDefs[columnIndex].SqlCtype == SQL_C_CHAR)
colDefs[columnIndex].CbValue = SQL_LEN_DATA_AT_EXEC(0);
else
colDefs[columnIndex].CbValue = SQL_LEN_DATA_AT_EXEC(colDefs[columnIndex].SzDataObj);
colDefs[columnIndex].CbValue = SQL_LEN_DATA_AT_EXEC(0);
else
colDefs[columnIndex].CbValue = SQL_LEN_DATA_AT_EXEC(colDefs[columnIndex].SzDataObj);
break;
case DB_DATA_TYPE_BLOB:
fSqlType = pDb->GetTypeInfBlob().FsqlType;
break;
case DB_DATA_TYPE_BLOB:
fSqlType = pDb->GetTypeInfBlob().FsqlType;
+ precision = colDefs[i].SzDataObj;
{
if (SQLBindParameter(hstmtInsert, colNo++, SQL_PARAM_INPUT, colDefs[i].SqlCtype,
fSqlType, precision, scale, (UCHAR*) colDefs[i].PtrDataObj,
{
if (SQLBindParameter(hstmtInsert, colNo++, SQL_PARAM_INPUT, colDefs[i].SqlCtype,
fSqlType, precision, scale, (UCHAR*) colDefs[i].PtrDataObj,
- precision+1,&colDefs[i].CbValue) != SQL_SUCCESS)
+ precision+1, &colDefs[i].CbValue) != SQL_SUCCESS)
{
return(pDb->DispAllErrors(henv, hdbc, hstmtInsert));
}
{
return(pDb->DispAllErrors(henv, hdbc, hstmtInsert));
}
+ retcode = SQLParamData(hstmtUpdate, &pParmID);
}
if (retcode == SQL_SUCCESS ||
retcode == SQL_NO_DATA_FOUND ||
}
if (retcode == SQL_SUCCESS ||
retcode == SQL_NO_DATA_FOUND ||
return(pDb->DispAllErrors(henv, hdbc, hstmtInsert));
}
else
return(pDb->DispAllErrors(henv, hdbc, hstmtInsert));
}
else
}
// Completed successfully
}
// Completed successfully
+ retcode = SQLParamData(hstmtInsert, &pParmID);