• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

SQL Query on an XMLObject CaseSensitive Resultset

New Here ,
Apr 19, 2013 Apr 19, 2013

Copy link to clipboard

Copied

Hi there,
I make a SQL query on an object with dbtype = query
<cfquery name="qry_catalog" dbtype="query">
SELECT * FROM catalog query
WHERE country LIKE '# art #'
</ cfquery>

What also goes without problems, interestingly, the query takes only results when the
Upper / lower case is correct.
e.g. Search for "UK" brings 13 records from the XML object "uk" no.

I have never read that it is case-sensitive.

I'm open to all suggestions.

Thank you greeting Jochen

Views

706

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 19, 2013 Apr 19, 2013

Copy link to clipboard

Copied

if you need a case insensitive query do something like  where upper(something) = #ucase(something)#

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 19, 2013 Apr 19, 2013

Copy link to clipboard

Copied

I believe it's commonly known that it's case sensitive. e.g. it's documented here:

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=using_recordsets_7.html

"Unlike the rest of ColdFusion, Query of Queries is case-sensitive. However, Query of Queries supports two string functions, UPPER() and LOWER(), which you can use to achieve case-insensitive matching."

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 19, 2013 Apr 19, 2013

Copy link to clipboard

Copied

LATEST

hi,
many thanks for the quick response.
I'm still a beginner.
Best regards, Jochen

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation