tracker issue : CF-3712088

select a category, or use search below
(searches all categories and all time range)
Title:

Usage of QueryExecute in cfclient causes error

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Dave Ferguson / Dave Ferguson (Dave Ferguson)

Created: 02/22/2014

Components: Mobile Support

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: PublicBeta /

Priority/Frequency: Major / All users will encounter

Locale/System: English / Mac 10.9

Vote Count: 0

Using this code inside cfclient throws a JSON parsing error


<cfset QueryExecute("INSERT INTO birthDates(firstName, lastname,dob) VALUES('Jon', 'Doe', 'Mark')", null, {datasource: "cfds"})>


Invalid CFML construct found on line 41 at column 6.

ColdFusion was looking at the following text:
JSON parsing failure: Expected /'/"/' at character 3:/'d/' in { datasource : /"cfds/" }

stack trace:

coldfusion.compiler.ParseException: Invalid CFML construct found on line 41 at column 6.
	at coldfusion.compiler.JSAssembler.generateJS(JSAssembler.java:464)
	at coldfusion.compiler.StmtAssembler.cftag(StmtAssembler.java:956)
	at coldfusion.compiler.StmtAssembler.assembleStatement(StmtAssembler.java:381)
	at coldfusion.compiler.TemplateAssembler.assembleStatement(TemplateAssembler.java:428)
	at coldfusion.compiler.StmtAssembler.block(StmtAssembler.java:234)
	at coldfusion.compiler.TemplateAssembler.assemblePage(TemplateAssembler.java:349)
	....

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3712088

External Customer Info:
External Company:  
External Customer Name: fergusondj
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

Keys for the struct without quotes passed as argument for queryexecute was not working. Fixed.
Comment by Chandan ..
13360 | February 22, 2014 04:36:33 AM GMT