/// <summary>
        /// Raises the <see cref="E:Warning"/> event.
        /// </summary>
        /// <param name="warning">
        /// The instance containing the event data.
        /// </param>
        internal void OnWarning(HsqlWarningEventArgs warning)
        {
            HsqlWarningEventHandler handler = this.Warning;

            if (handler == null)
            {
                HsqlConnection connection = this.Connection;

                if (connection != null)
                {
                    connection.OnWarning(warning);
                }
            }
            else
            {
                try
                {
                    handler(this, warning);
                }
                catch (Exception ex)
                {
                    if (HsqlDiagnostics.MustRethrowEventProcessingException(ex))
                    {
                        throw;
                    }
                }
            }
        }
        /// <summary>
        /// Raises the <see cref="E:Warning"/> event.
        /// </summary>
        /// <param name="warning">
        /// The instance containing the event data.
        /// </param>
        internal void OnWarning(HsqlWarningEventArgs warning)
        {
            HsqlWarningEventHandler handler = this.Warning;

            if (handler != null)
            {
                try
                {
                    handler.Invoke(this, warning);
                }
                catch (Exception ex)
                {
                    if (HsqlDiagnostics.MustRethrowEventProcessingException(ex))
                    {
                        throw;
                    }
                }
            }
        }