Found_rows() Returns 1 When Using Union And No Rows Found (Doc ID 2214919.1)

Last updated on DECEMBER 28, 2016

Applies to:

MySQL Server - Version 5.7 and later
Information in this document applies to any platform.

Symptoms

FOUND_ROWS() returns 1 when using UNION and no rows were found by previous SELECT statement.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms