Exemple #1
0
        // deprecated
        internal static void HandleWarnings(
            CLI.HandleType handleType,
            IntPtr handle,
            VirtuosoConnection connection)
        {
            VirtuosoInfoMessageEventArgs args = new VirtuosoInfoMessageEventArgs(OdbcErrors.CreateErrors(handleType, handle));

            connection.OnInfoMessage(args);
        }
Exemple #2
0
 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));
     }
 }
Exemple #3
0
        // 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);
        }
Exemple #4
0
 public VirtuosoErrorCollection CreateErrors()
 {
     return(OdbcErrors.CreateErrors(CLI.HandleType.SQL_HANDLE_STMT, hstmt));
 }