CFDBINFO [no matching function] -- when using cfscript

Hello,

cfdbinfo works in tag notation, but not in cfscript.
Error message: “No matching function [cfdbinfo] found”

Am I missing something?

fails:
cfdbinfo(datasource="myDatasource", type="version", name="dbinfo");

works:
<cfdbinfo datasource="myDatasource" type="version" name="dbinfo">

Thanks for your time in advance.

Don’t forget to tell us about your stack!

OS: Windows 10
Java Version: 1.8.0_144 (64bit)
Tomcat Version: 8.5.51
Lucee Version: 5.3.8.189

@tab Your failed example works for me.
Maybe the previous line missing semicolon at end causes to this

<cfscript>
    something // <---- this line missing the semi colon
    cfdbinfo(datasource="myDatasource", type="version", name="dbinfo");
</cfscript>

OR Please try another version of the tag-script syntax

<cfscript>
   dbinfo datasource = "myDatasource" type = "version" name = "dbinfo";
</cfscript>
1 Like

Okay, thank for your quick response. I tried a separate .cfm file. It works fine.

Even if the possible problem you described (missing semicolon) does not exist, it is probably actually a consequential error.