Status/Resolution/Reason: Closed/Won't Fix/Workaround
Reporter/Name(from Bugbase): Mingo Hagen / Mingo Hagen (Mingo Hagen)
Created: 06/29/2015
Components: Database
Versions: 11.0
Failure Type: Incorrect w/Workaround
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / All users will encounter
Locale/System: ALL / Platforms All
Vote Count: 0
Problem Description: When using PostgreSQL as a datasource the shorthand SELECT '10'::int will generate an error, the reason is that a the query.cfc file interprets a colon as a named parameter.
Steps to Reproduce:
var q = new query();
q.setSQL( "SELECT '10'::int" );
q.execute();
Actual Result:
Error about missing a named parameter
Expected Result:
Query result with the integer 10
Any Workarounds:
Use CAST( '10' ) AS int instead.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4013936
External Customer Info:
External Company:
External Customer Name: Mingo
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: