G'day: another one.

I've just raised http://code.google.com/p/openbluedragon/issues/detail?id=362,
which says this:

{quote}
Open BlueDragon Product Version         1,5
Open BlueDragon Build Date      2011-06-03 01:00:45 GMT

Steps to reproduce:
<cfset q = queryNew("id,english")>
<cfset queryAddRow(q)><cfset querySetCell(q, "id", 1)><cfset
querySetCell(q, "english", "one")>
<cfset queryAddRow(q)><cfset querySetCell(q, "id", 2)><cfset
querySetCell(q, "english", "two")>
<cfset queryAddRow(q)><cfset querySetCell(q, "id", 3)><cfset
querySetCell(q, "english", "three")>
<cfset queryAddRow(q)><cfset querySetCell(q, "id", 4)><cfset
querySetCell(q, "english", "four")>

<cfset a = arrayNew(1)>
<cfset a[1] = "tahi">
<cfset a[2] = "rua">
<cfset a[3] = "toru">
<cfset a[4] = "wha">

<cfset queryAddColumn(q, "maori", a)>
<cfdump var="#q#">

On OBD, this errors on the queryAddColumn() line because it's
expecting the third arg of queryAddColumn() to be the datatype, not
the array holding the data.

In other CFML engines (I've tested on CF8, CF9, Railo and BD.NET), if
there are three args, then the third arg is the data; only if there
are four args is the third arg the type.

OBD should behave the same way.
{quote}

Again, this is more an inconvenience to me than a problem, as my code
is easy to "fix", however you probably wanna fix this.

Cheers.

--
Adam

-- 
official tag/function reference: http://openbd.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to