--"set dateformat dmy "+"select * from [rpt].[Audit_Users] ("+params["paramLpu"].value+","+params["paramLpuBuilding"].value+","+params["paramLpuUnit"].value+","+params["paramLpuSectionProfile"].value+","+params["paramLpuSection"].value+","+params["paramMedStaffFact"].value+",'"+params["paramBegDate"].value+"','"+params["paramEndDate"].value+"',"+params["paramIncludeDopDisp"].value+") "
select *
from rpt.audit_users_pg(
cast($1 as int8), 
cast($2 as int8), 
cast($3 as int8), 
cast($4 as int8), 
cast($5 as int8), 
cast($6 as int8), 
cast(to_timestamp($7,'dd.mm.yyyy') as timestamp), 
cast(to_timestamp($8,'dd.mm.yyyy') as timestamp), 
cast($9 as int8))
