[stringtemplate-interest] string template inconsstent behaviour c# port
Sunil Chandrasekharan
sunil.kumar.c at gmail.com
Mon Oct 13 13:18:03 PDT 2008
Hi All,
following string template drops out parameter as they gets excuted
........
<type_id_usg_list:{e|
<DataCheckExistsOk(table="USAGE_TYPES",columnList=["type_id_usg","units_indicator"],valueList=[{'<e>'},"1"])>}>
..............
DataCheckExistsOk(table,columnList,valueList)
::=
<<
select 1
from <table>
where
<columnList,valueList:{c,v|<c>=<v>};separator=" AND ">
;
EXCEPTION
WHEN
NO_DATA_FOUND
THEN begin dbms_output.put_line(' Data Not Found:Table:'||'<table>' ||
'KEY='||
<columnList,valueList:{c,v| '<c>'||<v>};separator=" || ">
);is_rollback:=true; end;
>>
-------------------------------
produces out put
select 1
from USAGE_TYPES
where
type_id_usg='333' AND units_indicator=1
;
EXCEPTION
WHEN
NO_DATA_FOUND
THEN begin dbms_output.put_line(' Data Not Found:Table:'||'USAGE_TYPES' ||
'KEY='||
);is_rollback:=true; end;
----------------------
As you can see as evalution progress some how parameter list becomes
empty[high lighted text]. in the same template scope
If you can please add me as user on stringtemplate group as I am using
externsively and finds string template very useful.
I do not have same issue with single value in parameter list . I use the c#
port
ie;
<jurisdiction_list:{e|
<DataCheckExistsOk(table="JURISDICTIONS",columnList={<["jurisdiction"]>},valueList={<e>})>}>
produces corect o/p
Thansk for your time
regards
Sunil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org:8080/pipermail/stringtemplate-interest/attachments/20081013/6c9fddaa/attachment.html
More information about the stringtemplate-interest
mailing list