How to pass var-def to sql in side plugin?

Hi, tried to pass a parameter to sql plugin. As shown in below code, it gives error
Conversion failed when converting the varchar value ‘${memberID}’ to data type int.

<?xml version="1.0" encoding="UTF-8"?>
<config
	xmlns="http://web-harvest.sourceforge.net/schema/1.0/config"
	scriptlang="groovy">
	<var-def name="memberID">1449530</var-def> 	
	
	<var-def name="statusIds">
	<database connection="jdbc:sqlserver://XXXXXXQADB03:1433;databaseName=AAAAAppMaster;user=qDDDr;password=qaDDDer$"
		        jdbcclass="com.microsoft.sqlserver.jdbc.SQLServerDriver">
				Select a.LPM_QueueID, b.LPM_QueueDescrip from (
				Select LPM_QueueID from [LoanAppMaster].[CCCo].[Application] where
				AppID in (select max(AppID) from [LoanAppMaster].[CCCo].[Application] where Customer_Code = '${memberID}' group by Customer_Code))a
				inner join (Select LPM_QueueID, LPM_QueueDescrip from [LoanAppMaster].[dbo].[LKP_LPMQueue])b
				on a.LPM_QueueID = b.LPM_QueueID
			  </database>
	</var-def> 
			 <loop item="qID">
			  <list> <var name="statusIds"/> </list> 
			  <body> <template>
	<script><![CDATA[	
			println	"Salary of ${qID.get("LPM_QueueID")} is ${qID.get("LPM_QueueDescrip")}"
		 ]]></script>		
	      </template> </body>
	      </loop>
	<robotics-flow>
		<robot driver="universal" close-on-completion="true"
			start-in-private="true">
			<capability name="SEARCH_ALL_WINDOWS" value="true" />
			<script><![CDATA[		
			  ]]></script>
		</robot>
	</robotics-flow>
	<export include-original-data="true" />
	
</config>

Looks like the type of parameter is wrong. ${memberID} has to be an INT value, not VARCHAR.

@ashapkina

Yes, I tried using groovy command

and used ${intvsalue} inside plugin still gave the error.

Thanks,
Manoj