>- see footer for list info -<
Well you would think that wouldn't you, but no.
The only  example I can think of that u probably know about is the MySQL3.x
JDBC driver that comes with CFMX, this wont work with MySQL 4.x because the
encryption algorithm of passwords changed in MySQL 4.x, and the driver
doesn't send the password in the correct format.

The driver creates a prepared statement that is sent to the database
(server)

This is also why sometimes a CFSTOREDPROC wont work, but an EXEC statement
will work, because I believe the exec statement is sent as is.

Russ

 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adrian Lynch
Sent: 30 March 2006 00:59
To: Coldfusion Development
Subject: RE: [CF-Dev] Dmax in cfquery

>- see footer for list info -<
Would the driver need to support a function? I would have thought it would
just pass on whatever it was given.

Adrian

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Snake
Sent: 30 March 2006 00:52
To: 'Coldfusion Development'
Subject: RE: [CF-Dev] Dmax in cfquery


>- see footer for list info -<
Shawn,

I suspect the access driver doesn't support that function, you might want to
try rewriting the coding using a standard MAX() function instead.

If you really want to use DMAX, then you can write a stored query in your
access db, and call that instead.

Russ

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Shawn Fawcett
Sent: 29 March 2006 10:12
To: Coldfusion Development
Subject: Re: [CF-Dev] Dmax in cfquery

>- see footer for list info -<
here you go


Error Executing Database Query.

[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft
Access Driver] Too few parameters. Expected 3.

The error occurred in
D:\wwwroot\ablydev.com\wwwroot\dsp_home_cover_french.cfm: line 200 Called
from D:\wwwroot\ablydev.com\wwwroot\dsp_home.cfm: line 9 Called from
D:\wwwroot\ablydev.com\wwwroot\pagemaster.cfm: line 11 Called from
D:\wwwroot\ablydev.com\wwwroot\index.cfm: line 134 Called from
D:\wwwroot\ablydev.com\wwwroot\dsp_home_cover_french.cfm: line 200 Called
from D:\wwwroot\ablydev.com\wwwroot\dsp_home.cfm: line 9 Called from
D:\wwwroot\ablydev.com\wwwroot\pagemaster.cfm: line 11 Called from
D:\wwwroot\ablydev.com\wwwroot\index.cfm: line 134

198 : ">
199 :
200 : <cfquery name="q_LatestDate"
datasource="#application.DS#"
username="#application.dbuser#" password="#application.dbpass#">
201 : SELECT tblDailyRates.CurrencyRateDate AS aaa
202 : FROM tblDailyRates

SQL    SELECT tblDailyRates.CurrencyRateDate AS
aaa FROM tblDailyRates WHERE
tblDailyRates.CurrencyRateDate = DMax("CurrencyRateDate","tblDailyRates")
DATASOURCE   araxi
VENDORERRORCODE   -3010
SQLSTATE   07002

At 13:41 28/03/2006, you wrote:
> >- see footer for list info -<
>can you post the actual sql reported in the error please?
>
>On 3/28/06, Shawn Fawcett <[EMAIL PROTECTED]> wrote:
> >
> > >- see footer for list info -<
> >
> > works in access but when I insert in cfquery I get an error of too 
> > few parameters
> >
> > <cfquery name="q_LatestDate"
> > datasource="#application.DS#"
> > username="#application.dbuser#" password="#application.dbpass#"> 
> > SELECT tblDailyRates.CurrencyRateDate AS aaa FROM tblDailyRates 
> > WHERE (((tblDailyRates.CurrencyRateDate 
> > )=DMax("CurrencyRateDate","tblDailyRates")));
> > </cfquery>
> >
> >
> >
> >
> > ARAXI Traductions France
> > 100 Passage Henri Régnault - 92400 Courbevoie La Défense 6 Tél. : 01
> > 49 03 41 49 - Fax : 01 49 03 41 42
> > _______________________________________________
> >
> > For details on ALL mailing lists and for joining or leaving lists, 
> > go to http://list.cfdeveloper.co.uk/mailman/listinfo
> >
> > --
> > CFDeveloper Sponsors:-
> > >- Hosting provided by www.cfmxhosting.co.uk -<
> > >- Forum provided by www.fusetalk.com -<
> > >- DHTML Menus provided by www.APYCOM.com -<
> > >- Lists hosted by www.Gradwell.com -<
> > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your 
> > >help
> > -<
> >
>
>
>
>--
>Mike T
>Blog http://www.socialpoints.com/
>_______________________________________________
>
>For details on ALL mailing lists and for joining or leaving lists, go 
>to http://list.cfdeveloper.co.uk/mailman/listinfo
>
>--
>CFDeveloper Sponsors:-
> >- Hosting provided by www.cfmxhosting.co.uk -<
> >- Forum provided by www.fusetalk.com -<
> >- DHTML Menus provided by www.APYCOM.com -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your 
> >help -<

ARAXI Traductions France
100 Passage Henri Régnault - 92400 Courbevoie La Défense 6 Tél. : 01 49 03
41 49 - Fax : 01 49 03 41 42 _______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help 
>-<


_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help 
>-<

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help 
>-<


_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to