I don't believe you need those single-quotes inside cfqueryparam. But show
more code and I'm sure we'll be able to tell you what's wrong. Show us the
whole query at least.
Greg
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 05, 2004 10:09 AM
To: CF-Talk
Subject: Re: Havent seen this error before...
Looks like you are missing a set of single quotes in your value attribute.
Instead of this,
45 : set txtBoutCat = <cfqueryparam cfsqltype="cf_sql_varchar"
value="#instance.category#" null="#yesnoformat(not len(trim
(instance.category)))#">,
try this:
45 : set txtBoutCat = <cfqueryparam cfsqltype="cf_sql_varchar"
value="'#instance.category#'" null="#yesnoformat(not len(trim
(instance.category)))#">,
[EMAIL PROTECTED]
ets.com
To
2004-07-05 09:50 CF-Talk <[EMAIL PROTECTED]>
cc
Please respond to Subject
[EMAIL PROTECTED] Re: Havent seen this error
sion.com before...
Sorry, HOF cut off some of the message (formatting from CFs error stuff)
I am now getting an odd error:
Error Executing Database Query.
Unknown Types value
The error occurred in /home/httpd/[omitted]/system/cfcomponents/com/
[omitted]/boutique/category.cfc: line 43
Called from /home/httpd/[omitted]/secure/editor/_cat.cfm: line 205
Called from /home/httpd/[omitted]/secure/editor/main.cfm: line 114
Called from /home/httpd/[omitted]/system/cfcomponents/com/
[omitted]/boutique/category.cfc: line 43
Called from /home/httpd/[omitted]/secure/editor/_cat.cfm: line 205
Called from /home/httpd/[omitted]/secure/editor/main.cfm: line 114
41 :
42 : <cffunction name="update" access="public" output="false"
returntype="boolean">
43 : <cfquery name="cat" datasource="#application.config.DSN#">
44 : update tblboutcat2
45 : set txtBoutCat = <cfqueryparam cfsqltype="cf_sql_varchar"
value="#instance.category#" null="#yesnoformat(not len(trim
(instance.category)))#">,
--
SQL update tblboutcat2 set txtBoutCat = (param 1) , blActive = (param 2)
where intBoutCatID = (param 3)
DATASOURCE [omitted]
SQLSTATE S1000
Anybody ever seen this one before? This function is nearly identical to one
in
another CFC that I currently have running which works perfectly (different
table and fields). I've double checked that there are values to my
'instance'
vars, that I have the sqltypes set correctly, etc. And I still can't figure
it
out. Help....
Cutter
Quoting JediHomer <[EMAIL PROTECTED]>:
> Whats the other code around that, as I notice you end with a comma but
> no more code is shown.
>
> Might help to scope your vars, so add something like
>
> <CFSET VAR Cat = "">
>
> after the <CFFUNCTION
>
> or ommit the name of the CFQUERY if its not going to return anything.
> Potentially pass the datasource in as an argument rather than trying
> to access the Application scope
>
> HTH
>
> Mike
>
>
> ----- Original Message -----
> From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Date: Mon, 5 Jul 2004 08:55:50 -0400
> Subject: Havent seen this error before...
> To: CF-Talk <[EMAIL PROTECTED]>
>
> I am now getting an odd error:
>
>
> Error Executing Database Query.
> Unknown Types value
>
> 42 : <cffunction name="update" access="public" output="false"
>
> returntype="boolean">
>
> 43 : <cfquery name="cat" datasource="#application.config.DSN#">
>
> 44 : update tblboutcat2
>
> 45 : set txtBoutCat = <cfqueryparam cfsqltype
="cf_sql_varchar"
>
> value="#instance.category#" null="#yesnoformat(not len(trim
>
> (instance.category)))#">,
>
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- Havent seen this error before... Cutter (CF-Talk)
- Havent seen this error before... cold . fusion
- Re: Havent seen this error before... JediHomer
- Re: Havent seen this error before... cold . fusion
- Re: Havent seen this error before... dan . bracuk
- RE: Havent seen this error befo... Greg Luce
- RE: Havent seen this error ... Mark A. Kruger - CFG
- RE: Havent seen this er... Greg Luce
- Re: Havent seen this er... JediHomer
- RE: Havent seen this er... Greg Luce
- Re: Havent seen this er... JediHomer
- RE: Havent seen this er... Mark A. Kruger - CFG
- Re: Havent seen this er... JediHomer
- RE: Havent seen this er... Mark A. Kruger - CFG
- RE: Havent seen this er... Mark A. Kruger - CFG
- RE: Havent seen this error ... Mark A. Kruger - CFG