Patch # 984215 - Insert was returning SUCCESS after an error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1945,6 +1945,14 @@ int wxDbTable::Insert(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
retcode = SQLParamData(hstmtInsert, &pParmID);
|
retcode = SQLParamData(hstmtInsert, &pParmID);
|
||||||
|
if (retcode != SQL_SUCCESS &&
|
||||||
|
retcode != SQL_SUCCESS_WITH_INFO)
|
||||||
|
{
|
||||||
|
// record was not inserted
|
||||||
|
pDb->DispNextError();
|
||||||
|
pDb->DispAllErrors(henv, hdbc, hstmtInsert);
|
||||||
|
return(DB_FAILURE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user