// deprecated internal static void HandleWarnings( CLI.HandleType handleType, IntPtr handle, VirtuosoConnection connection) { VirtuosoInfoMessageEventArgs args = new VirtuosoInfoMessageEventArgs(OdbcErrors.CreateErrors(handleType, handle)); connection.OnInfoMessage(args); }
public VirtuosoErrorCollection CreateErrors() { if (hdbc == IntPtr.Zero) { return(OdbcErrors.CreateErrors(CLI.HandleType.SQL_HANDLE_ENV, henv)); } else { return(OdbcErrors.CreateErrors(CLI.HandleType.SQL_HANDLE_DBC, hdbc)); } }
// deprecated internal static void HandleErrors( CLI.ReturnCode returnCode, CLI.HandleType handleType, IntPtr handle) { VirtuosoErrorCollection errors = null; if (returnCode == CLI.ReturnCode.SQL_ERROR) { errors = OdbcErrors.CreateErrors(handleType, handle); } else { errors = CreateErrors(returnCode); } throw new VirtuosoException(returnCode, errors); }
public VirtuosoErrorCollection CreateErrors() { return(OdbcErrors.CreateErrors(CLI.HandleType.SQL_HANDLE_STMT, hstmt)); }