cherdt wrote:
> I'm running into a strange problem, and I'm wondering if
anyone else has
> noticed the same. I have a query that is returning zero
results in ColdFusion,
> but the same query returns 22 results via the database.
>
> The problem appears to be the cfsqltype. The database
column is data type
> CHAR(5). When I specify the cfsqltype as cf_sql_char,
the query returns zero
> results. When I specify the cfsqltype as cf_sql_integer,
the query returns 22
> results.
Your code is exactly the opposite of your explanation.
However, you
should try to append spaces to you value to make sure it is
exactly the
correct number of characters, i.e.:
<cfqueryparam
value="#Left(trim(value) & ' ', y)#"
cfsqltype="cf_sql_char"
maxlength="#y#">
Jochem
--
Jochem van Dieten
Adobe Community Expert for ColdFusion