tracker issue : CF-4126422

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

query without cfqueryparam strange behaviour

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): Frédéric Peters / Frédéric Peters (External User)

Created: 03/09/2016

Components: Language

Versions: 2016

Failure Type: Unspecified

Found In Build/Fixed In Build: Beta2_v12 /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Win All

Vote Count: 0

Problem Description:

<cfquery datasource="#application.datasource#" name="query1" cachedwithin="#CreateTimeSpan(0, 0, 0, 0)#">
SELECT * , Products.titre,Products.CategoryID, Products.cptxt
FROM NewPhotos 
INNER JOIN Products on Products.ItemID = NewPhotos.ItemID
where NewPhotos.ItemID = 224888
</cfquery>

==> #query1.recordcount# = 0

<cfquery datasource="#application.datasource#" name="query1" cachedwithin="#CreateTimeSpan(0, 0, 0, 0)#">
SELECT * , Products.titre,Products.CategoryID, Products.cptxt
FROM NewPhotos 
INNER JOIN Products on Products.ItemID = NewPhotos.ItemID
where NewPhotos.ItemID = <cfqueryPARAM value = "224888" CFSQLType = "CF_SQL_INTEGER">
</cfquery>

==> #query1.recordcount# = 5

Steps to Reproduce:

very strange I copy paste the code in Navicat and get records.
When the code is in the <cfquery> tags without cfqueryparam it returns 0 rows.

But I have other records where everything works well...

Actual Result:

Expected Result:

Any Workarounds:

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

Watson Bug ID:	4126422

External Customer Info:
External Company:  
External Customer Name: Frédéric Peters
External Customer Email: frederic.peters@outlook.com
External Test Config: Friendly Name: Win2008R2 Apache 2.2.21
Device Type: Server
Manufacturer/Brand: Supermicro
Model: unknown
Memory (ROM): 4
Operating System (if known): Windows 2008 R2 64 bits


Bug File Paths:
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Beta2_v12\4112097\test-bug-image.cfm
	 
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Beta2_v12\4112097\test-bug-image_1.cfm

Attachments:

Comments:

Adding BUG AUDIT TRAIL ********action: updated fieldName: Closed By newValue: nimsharm oldValue: Blank oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2016-02-06 07:00:55.0 action: updated fieldName: State newValue: Closed oldValue: Open oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2016-02-06 07:00:55.0 action: updated fieldName: Status newValue: Withdrawn oldValue: ToTrack oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2016-02-06 07:00:55.0 action: updated fieldName: Reason newValue: NotABug oldValue: PRHaveInfo oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2016-02-06 07:00:55.0 action: updated fieldName: Date Closed newValue: 2016-02-05 23:00:55.0 oldValue: Blank oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2016-02-06 07:00:55.0 action: updated fieldName: Owner newValue: Blank oldValue: nimsharm oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2016-02-06 07:00:55.0 action: updated fieldName: Reason newValue: PRHaveInfo oldValue: PRNeedInfo oprid: prerelease recordName: RQ_DEFECT timpestamp: 2016-02-06 06:45:32.0 action: updated fieldName: Status newValue: ToTrack oldValue: ToTrack oprid: prerelease recordName: RQ_DEFECT timpestamp: 2016-02-06 06:45:32.0 action: updated fieldName: State newValue: Open oldValue: Open oprid: prerelease recordName: RQ_DEFECT timpestamp: 2016-02-06 06:45:32.0 action: updated fieldName: Reason newValue: PRNeedInfo oldValue: PRHaveInfo oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2016-02-01 07:09:11.0 action: updated fieldName: Status newValue: ToTrack oldValue: ToTrack oprid: prerelease recordName: RQ_DEFECT timpestamp: 2016-01-31 15:13:55.0 action: updated fieldName: State newValue: Open oldValue: Open oprid: prerelease recordName: RQ_DEFECT timpestamp: 2016-01-31 15:13:55.0 action: updated fieldName: Reason newValue: PRHaveInfo oldValue: PRNeedInfo oprid: prerelease recordName: RQ_DEFECT timpestamp: 2016-01-31 15:13:55.0 action: updated fieldName: Status newValue: ToTrack oldValue: Unverified oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2016-01-31 07:38:42.0 action: updated fieldName: Reason newValue: PRNeedInfo oldValue: Blank oprid: nimsharm recordName: RQ_DEFECT timpestamp: 2016-01-31 07:38:42.0 action: updated fieldName: Dev Assigned newValue: himar oldValue: rukumar oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2016-01-31 06:12:00.0 action: updated fieldName: QE Assigned newValue: nimsharm oldValue: vmannebo oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2016-01-31 06:12:00.0 action: updated fieldName: Owner newValue: nimsharm oldValue: vmannebo oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2016-01-31 06:12:00.0
Comment by CFwatson U.
4177 | March 09, 2016 02:01:28 AM GMT
Added By:nimsharm Note Added: Thanks for the confirmation. I will close this bug. Date Added :2016-02-06 07:00:42.0 Added By: PreRelease User User Name:Frédéric Peters Note Added: I was not able to reproduce the bug. I believe it was related to cached queries. There is no bug Date Added :2016-02-06 06:45:32.0 Added By: PreRelease User User Name:Frédéric Peters Note Added: mm now is again ok ! I think it is related to cached queries Date Added :2016-01-31 15:15:30.0 Added By: PreRelease User User Name:Frédéric Peters Note Added: newphoto.itemID is "int" type in mysql I tried to check with IsNumeric(#url.itemID#) it was YES so I really dont know where this come from, the fact is it returned 0 recordcount. When I added <cfqueryPARAM value = "224888" CFSQLType = "CF_SQL_INTEGER"> it helped. Date Added :2016-01-31 15:13:55.0 Added By: PreRelease User User Name:Frédéric Peters Note Added: Entered Bug. Date Added :2016-01-30 15:01:20.0
Comment by CFwatson U.
4178 | March 09, 2016 02:01:39 AM GMT