On execution I receive an exception like freemarker is not working. Am
I missing something? Are there Orbroker/FreeMarker examples that I can
take a look into?
Thank you.
The exception:
Message: java.sql.SQLException: Parâmetro IN ou OUT ausente do
índice:: 2
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:
113)
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:
147)
val lancsByCPF = Token("""
select some_field from lancamentos where id_tipo_credito = 1
<#if cpf?exists>
and cpf = :cpf
<#if>""", 'lancsByCPF)
Not sure if this is the problem, but the closing <#if> is missing the /. Should be </#if>.
Eduardo M. Cavalcanti
unread,
Sep 21, 2011, 11:46:39 AM9/21/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to orbr...@googlegroups.com
Thanks for help.
I have corrected it , but the error is the same.
"freemarker" does not appear in the stack trace, so I am suposing
its function isn't even being activated. What triggers its use?
Just creating a BrokerBuilder with FreeMarkerSupport?
I've tried to use orbroker 3.2rc1. I can't compile my code with it
in my environment (eclipse + scala ide plugin 2 beta 10, scala
2.9.1).
3.2 will dump the dynamically generated SQL? How does it work?
Can you provide the source code for 3.2rc1 so I can compile it in
Scala 2.9.1?
Thanks.
Nils Kilden-Pedersen
unread,
Sep 21, 2011, 12:00:49 PM9/21/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to orbr...@googlegroups.com
Oh, I remember now. FreeMarker/Velocity is not available for statements that are provided at runtime (as opposed to registered with the BrokerConfig/Builder). This is because you can just construct the SQL in Scala then, no need for a template language.
Eduardo M. Cavalcanti
unread,
Sep 21, 2011, 12:14:30 PM9/21/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message