INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Coldfusion mysql question

Coldfusion mysql question

(OP)
I am having either an interesting problem or a brain fart. Not sure which. Is there any reason this query would return different from the coldfusion server than from the actual mysql?

This is part of my query:

CODE --> coldfusion

<cfquery name="get_team" datasource="bluesky">
SELECT * FROM locations LEFT JOIN teams ON teams.team_id=locations.location_team WHERE lower(location_name)='#LCASE(a[7])#, #LCASE(a[8])#'
</cfquery>
<cfdump var="#get_team#"><cfabort>

cfdump results with no information:
query
RESULTSET	
query
 	COMPANY_ID	LOCATION_CODE	LOCATION_GIFT	LOCATION_ID	LOCATION_NAME	LOCATION_TEAM	TEAM_ID	TEAM_NAME
CACHED	false
EXECUTIONTIME	1
SQL	SELECT * FROM locations LEFT JOIN teams ON teams.team_id=locations.location_team WHERE lower(location_name)='peru, il'

Returns this from mysql with the sql above:
location_id  location_name  location_gift  location_team  location_code  team_id  team_name  company_id   
85 Peru, IL 11 2 0 2 SJ1 2 

If you can't stand behind your troops, stand in front of them.
Semper Fidelis

Jim

RE: Coldfusion mysql question

(OP)
Figured it out. Even though it didn't show it was putting extra spaces in the where clause.

If you can't stand behind your troops, stand in front of them.
Semper Fidelis

Jim

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close