> Personally my preference would be the udf. If only
because it uses a documented function.
Since when was the getMetadata() method of a *query object* a
"documented"
function? Any more than getColumnList() is, I mean?
The only reference to getMetadata() I can see in the docs is
for this:
http://livedocs.adobe.com/coldfusion/8/buildingComponents_38.html
Which is a completely different function.
There's nothing else in the docs index for getMetadata()
under "G":
http://livedocs.adobe.com/coldfusion/8/htmldocs/index_8.html
As far as I know all exposed methods of the the Java objects
underlying the
CF data types are "tread with caution" because there's no
guarantee they
will be implemented from one version of CF to the next.
> Though getColumnList() may well be what CF uses
internally ..
I would say it almost certainly does. It seems unlikely
they'd implement
it for no reason ;-)
I prefer Phil's way because it's tidier than the UDF at
CFLib.
--
Adam