Patrick S
11/13/2024, 3:49 PMQuery[ "Column Name" ].toString() returns the internal name of the specific column and row of the query, instead of the data inside it. Switching to CF2018 or Lucee on TryCF shows the expected behavior... https://trycf.com/gist/8daf55ac44a1e2d6fe8b06c4fa7ca28e/acf2021?theme=monokaiPatrick S
11/13/2024, 4:18 PMMatt Dyer
11/13/2024, 4:48 PMMatt Dyer
11/13/2024, 4:48 PMPatrick S
11/13/2024, 5:42 PMMark Takata (Adobe)
11/13/2024, 6:29 PMPatrick S
11/13/2024, 6:29 PMAshudeep Sharma
11/14/2024, 7:46 AMAshudeep Sharma
11/14/2024, 7:57 AMGareth
11/14/2024, 8:33 AMDave Merrill
11/14/2024, 1:27 PM*So now you have to specify the index to fetch the elements* such as news.title[1], news.title[2] and Bug is fixed for all functions used on an implicitly-referenced 1st row.
I REALLY HOPE that implicit references to the first row aren't broken now.
That would break a lot of code that's worked for years, as others have said.
Is the question about direct references to the query column with no row number, function calls on that, or both?Rodney
11/14/2024, 1:32 PMDave Merrill
11/14/2024, 1:41 PMmtbrown
11/14/2024, 1:54 PMtoString after. FYI, that functionality of returning the value in that case seems to be new to CF2018 and I'd be surprised if it was documented.Dave Merrill
11/14/2024, 2:03 PMmtbrown
11/14/2024, 2:05 PMQuery[ "Column Name" ].toString()Dave Merrill
11/14/2024, 2:13 PMmtbrown
11/14/2024, 2:25 PMtoString() (or certain other functions as shown in that ticket).Patrick S
11/14/2024, 2:45 PM<cfoutput query="myQuery"><p>#myQuery.ColumnName#</p></cfoutput> to <cfoutput query="myQuery"><p>#myQuery[ ColumnName ].toString()#</p></cfoutput>. To be fair, I was pretty mystified by why #myQuery[ "ColumnName" ]# breaks inside the CFOUTPUT/CFLOOP query, but not in a CFDUMP which outputs as a string or when outputting just the first row outside of...
I get why it could be considered a bug, but at the same time, it has been the regular behavior for many years - and more similarly matches the ancient behavior of CFML's CFOUTPUT and CFLOOP's handling of query column variables over the years, which 'automagically' handle the row numbers. Additionally, CF-4219387 doesn't appear to be listed in the bugs fixed for update 15, 16 or 17 in CF2021: https://helpx.adobe.com/coldfusion/kb/coldfusion-2021-update-17.html#bugfixPatrick S
11/14/2024, 2:56 PMmtbrown
11/14/2024, 3:01 PMPatrick S
11/14/2024, 3:29 PMDave Merrill
11/14/2024, 5:04 PMmtbrown
11/14/2024, 5:40 PM