Home Discussions Questions & Answers Lexical Parameter Placeholder Usage

Lexical Parameter Placeholder Usage

Avatar photoCustomer October 6, 2019 at 8:23 am

I need to ensure a parameter value is inserted literally as text into the SQL, rather than being treated as a bind variable. This is necessary to force database reparsing when the value changes.

Viewing 4 reply threads
  • Author
    Replies
    • Support October 7, 2019 at 11:49 pm  

      If you require the parameter value to show up as lexical text in the SQL, you must use the specific placeholder in the Parameter SQL text field.

    • Avatar photoCustomer October 9, 2019 at 4:20 am  

      What is the key benefit of using this method?

    • Support October 9, 2019 at 7:37 am  

      The primary benefit is enabling you to purposefully enforce reparsing for different parameter values, which can be useful for advanced dynamic SQL features.

    • Avatar photoCustomer October 10, 2019 at 7:51 am  

      And this must be combined with the &lexical anchor type?

    • Support October 12, 2019 at 6:59 am  

      Yes, this technique is used with the &lexical anchor, as that anchor type completely replaces the placeholder with the parameter SQL text at run-time.

Viewing 4 reply threads
  • You must be logged in to reply to this post.

Login with: