scripter73
Programmer
Hi,
I'm trying to add a column to an existing query with the following:
<cfset column1 = QueryAddColumn(newdata,"boodoo",array1)>
where
<cfset array1 = ArrayNew(1)>
<cfloop index="counter" from="1" to=#newdata.recordcount#>
<cfset array1[counter] = 0>
<cfoutput>#array1[counter]#</cfoutput><br>
</cfloop>
newdata is the existing query, "boodoo" is the new column name
I KEEP getting the following message: The column name (boodoo) that you have specified already exists in this query. Column names must be unique.
It doesn't matter what I change the name to, Cold Fusion will say it isn't unique. I'm not using duplicate names. I change it to something silly and I still get the same message.
I heard you can't use QueryAddColumn on a cached query. How can I check that? Maybe since I'm debugging alot, its cached?
Any help, ANYONE?
Thanks in advance,
scripter73
Change Your Thinking, Change Your Life.
I'm trying to add a column to an existing query with the following:
<cfset column1 = QueryAddColumn(newdata,"boodoo",array1)>
where
<cfset array1 = ArrayNew(1)>
<cfloop index="counter" from="1" to=#newdata.recordcount#>
<cfset array1[counter] = 0>
<cfoutput>#array1[counter]#</cfoutput><br>
</cfloop>
newdata is the existing query, "boodoo" is the new column name
I KEEP getting the following message: The column name (boodoo) that you have specified already exists in this query. Column names must be unique.
It doesn't matter what I change the name to, Cold Fusion will say it isn't unique. I'm not using duplicate names. I change it to something silly and I still get the same message.
I heard you can't use QueryAddColumn on a cached query. How can I check that? Maybe since I'm debugging alot, its cached?
Any help, ANYONE?
Thanks in advance,
scripter73
Change Your Thinking, Change Your Life.