Advertisement

01.20.2004 at 12:41PM PST, ID: 20856945
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

CF/Oracle error: inconsistent datatypes: expected - got CLOB

Asked by Roentgen in ColdFusion Application Server

Tags: , , , ,

I am having trouble reading from Oracle using the following ColdFusion code:

<CFQUERY
     name = "GetMessageID"
     datasource = "REMDEV"
     maxrows = "1">
             
     SELECT The_Message_ID
     FROM MessagesDB.The_Messages
     WHERE
                     The_Message = <CFQUERYPARAM CFSQLTYPE="cf_sql_varchar"  VALUE = '#variables.TrimNewMessageText#'>  AND
                Message_Title = <CFQUERYPARAM CFSQLTYPE="cf_sql_clob" VALUE='#FORM.MessageTitle#'>
</CFQUERY>

This code works fine in MS Access, but chokes in Oracle. Now the data is in the database, So I don't know why I can't see it. It appears from the error message that it doesn't know what the datatype is. Any suggestions? Here is thge error I get:

 Error Occurred While Processing Request
Error Executing Database Query.
[Macromedia][Oracle JDBC Driver][Oracle]ORA-00932: inconsistent datatypes: expected - got CLOB
 
The error occurred in C:\Program Files\Apache Group\Apache\htdocs\AddNewsItem.cfm: line 74

72 :               WHERE
73 :                  The_Message = <CFQUERYPARAM CFSQLTYPE="cf_sql_varchar" VALUE='#variables.TrimNewMessageText#'> AND
74 :                 Message_Title = '#FORM.MessageTitle#'
75 :          </CFQUERY>
76 :          <!--- See if the query is getting the correct message

SQL    SELECT The_Message_ID FROM MessagesDB.The_Messages WHERE The_Message = (param 1) AND Message_Title = 'Test 20 Jan'
DATASOURCE   REMDEV
VENDORERRORCODE   932
SQLSTATE   HY000
Please try the following:

    * Check the ColdFusion documentation to verify that you are using the correct syntax.
    * Search the Knowledge Base to find a solution to your problem.

Start Free Trial
[+][-]01.20.2004 at 08:47PM PST, ID: 10161533

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 14-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]01.21.2004 at 02:57AM PST, ID: 10163619

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.21.2004 at 06:02PM PST, ID: 10170536

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.21.2004 at 09:05PM PST, ID: 10171329

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 12:38PM PST, ID: 10177604

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 12:43PM PST, ID: 10177750

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 12:54PM PST, ID: 10177921

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 01:02PM PST, ID: 10178056

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: ColdFusion Application Server
Tags: inconsistent, got, expected, clob, oracle
Sign Up Now!
Solution Provided By: jyokum
Participating Experts: 2
Solution Grade: A
 
 
[+][-]01.22.2004 at 01:13PM PST, ID: 10178242

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 01:16PM PST, ID: 10178290

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 01:23PM PST, ID: 10178407

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 01:25PM PST, ID: 10178436

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 01:27PM PST, ID: 10178469

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 01:54PM PST, ID: 10178855

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.23.2004 at 01:23AM PST, ID: 10182486

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.23.2004 at 08:05AM PST, ID: 10184914

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.26.2004 at 09:09PM PST, ID: 10206886

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43