foundeo / toscript

Converts Tag based CFML to CFML Script
GNU General Public License v3.0
20 stars 9 forks source link

<cfstoredproc> Throwing error #22

Closed nikhildevre closed 7 years ago

nikhildevre commented 7 years ago

Input

` < cffunction name="myQuery" returntype="query" >

        <cfstoredproc procedure="Insert_Book" datasource="somedsn"> 

            <cfprocparam cfsqltype="cf_sql_varchar" value="sometitle"> 

        </cfstoredproc> 

        <cfreturn Insert_Book>
    < /cffunction >

`

Output

` public query function myQuery() { /* toScript ERROR: Unable to convert tag: cfstoredproc to CFML Script

            <cfstoredproc procedure="Insert_Book" datasource="somedsn"> 

            <cfprocparam cfsqltype="cf_sql_varchar" value="sometitle"> 

        </cfstoredproc>

    */

    return Insert_Book;
}

`

pfreitag commented 7 years ago

Thanks for reporting this, I will get it fixed.