Skip to content

ORA-24347 when maxRows = number of returned rows and using an aggregate function. #80

@ajcrites

Description

@ajcrites

I need to be able to run a query that will yield a warning, but I still want to be able to get the results.

SELECT
  c.customer_number,
  COUNT(DISTINCT o.ORDER_NUMBER),
  COUNT(DISTINCT q.QUOTE_NUMBER)
FROM
  Customer c
  LEFT JOIN Orders o on c.customer_number = o.party_number
  LEFT JOIN Quote q on c.customer_number = q.account_number
GROUP BY
  c.customer_number

This query will generate a warning about NULL column in aggregate function.

I really can't find a way to get around this warning and still use a similar query (more details: http://stackoverflow.com/questions/29855456/count-null-columns-as-zeros-with-oracle)

Anyway, the callback function for execute when this query is run will only populate the err and will not return the results even though the query is otherwise valid -- I can run it in other contexts and get the exact data that I need.

There should be a setting that allows you to ignore or suppress warnings or to still get data from the query even if there is a warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions