Skip to main content
Participant
January 30, 2018
Question

cfquery of query not working in CF2016

  • January 30, 2018
  • 1 reply
  • 579 views

I have a query which has run well on ColdFusion 10.

However we've upgraded to CF2016 and yet when I run a query of a query I get no results.

<cfquery datasource="travcomus" name="firstquery">

  SELECT * FROM tablename

</cfquery>

Followed by

<cfquery dbtype="Query" name="secondquery" >

  select * from firstquery

</cfquery>

The second query does not return any results. There is nothing in the logs as well.

This topic has been closed for replies.

1 reply

WolfShade
Legend
January 30, 2018

Does a CFDUMP of the first query produce records?

V/r,

^ _ ^

Carl Von Stetten
Legend
January 30, 2018

And if not, are the datasources configured identically between CF10 & CF2016?

-Carl V.