Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Issue With NULL and QueryRun()
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Matthew Woodward  
View profile  
 More options Jan 31, 11:14 pm
From: Matthew Woodward <m...@mattwoodward.com>
Date: Sun, 31 Jan 2010 20:14:20 -0800
Local: Sun, Jan 31 2010 11:14 pm
Subject: Issue With NULL and QueryRun()

I've been experimenting a lot with QueryRun() recently (which I absolutely
love--see blog post here for one cool trick I discovered:
http://bit.ly/cHH8dD), but I think there may be an issue with the null
parameter in the array of structs that are used in lieu of CFQUERYPARAM.

Dumb example, but illustrates the problem:
userParams = [{value = 1, cfsqltype = "cf_sql_integer", null = true}];
userSQL = "select * from user where id = ?";
users = QueryRun("test", userSQL, userParams);

When I run that I get a Bad File Execption:
TypeTemplateMessageBadly formatted tagPositionLine=3; Column=58DetailProblem
occurred while parsing: Encountered invalid token after "NULL"Source

1: <cfscript>
2:   userSQL = "select * from user where id = ?";
3:   userParams = [{value = 1, cfsqltype = "cf_sql_integer", NULL = true}];
4:   users = QueryRun("test", userSQL, userParams);
5: </cfscript>

Maybe a conflict due to the null keyword also being available?
--
Matthew Woodward
m...@mattwoodward.com
http://blog.mattwoodward.com
identi.ca/Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Williamson  
View profile  
 More options Feb 1, 5:24 am
From: Alan Williamson <a...@aw20.co.uk>
Date: Mon, 01 Feb 2010 10:24:31 +0000
Local: Mon, Feb 1 2010 5:24 am
Subject: Re: [OpenBD] Issue With NULL and QueryRun()
That's exactly what it is Matt ... we could rename that particular
particular parameter as a special case and say call it: "nullvalue" ?


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthew Woodward  
View profile  
 More options Feb 1, 9:33 am
From: Matthew Woodward <m...@mattwoodward.com>
Date: Mon, 1 Feb 2010 06:33:29 -0800
Local: Mon, Feb 1 2010 9:33 am
Subject: Re: [OpenBD] Issue With NULL and QueryRun()

On Mon, Feb 1, 2010 at 2:24 AM, Alan Williamson <a...@aw20.co.uk> wrote:
> That's exactly what it is Matt ... we could rename that particular
> particular parameter as a special case and say call it: "nullvalue" ?

Perfect--works for me.
--
Matthew Woodward
m...@mattwoodward.com
http://blog.mattwoodward.com
identi.ca/Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Williamson  
View profile  
 More options Feb 1, 9:57 am
From: Alan Williamson <a...@aw20.co.uk>
Date: Mon, 01 Feb 2010 14:57:03 +0000
Local: Mon, Feb 1 2010 9:57 am
Subject: Re: [OpenBD] Issue With NULL and QueryRun()
Done. expect it tomorrow's nightly build


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthew Woodward  
View profile  
 More options Feb 1, 10:01 am
From: Matthew Woodward <m...@mattwoodward.com>
Date: Mon, 1 Feb 2010 07:01:56 -0800
Local: Mon, Feb 1 2010 10:01 am
Subject: Re: [OpenBD] Issue With NULL and QueryRun()

Excellent--thanks!

On Mon, Feb 1, 2010 at 6:57 AM, Alan Williamson <a...@aw20.co.uk> wrote:
> Done. expect it tomorrow's nightly build

> Matthew Woodward wrote:

>> Perfect--works for me.

> --
> Open BlueDragon Public Mailing List
> http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
> mailing list - http://groups.google.com/group/openbd?hl=en

> !! save a network - please trim replies before posting !!

--
Matthew Woodward
m...@mattwoodward.com
http://blog.mattwoodward.com
identi.ca/Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google