Enhance DatabaseJoin with SQL parameter support - #8339
Conversation
|
Nice feature. My main concern is backwards compatibility: three of these break pipelines that work on main and don't use the new syntax at all. Serialization is fine — Blockers1. 2. Both failure modes are silent in different ways. JDBC can't do this parse: Suggest one tokenizer in core returning the ordered reference list, with 3.
If the declared types are needed for the named case, suggest preferring the incoming row's type when the field resolves in Should fix4. Stored-procedure deferral swallows connection failures. In 5. No validation when SQL is empty. The closing brace before Minor / follow-up
GUI surface
This doesn't need an authoring UI. The SQL is the binding, so nothing needs a second editing surface; a read-only panel under the SQL editor showing what the parser resolved is enough:
Optional on top, both droppable: grey out the positional table when the SQL has no bare |
…re parameter specification is initialized
…hance metadata discovery
|
Thanks for your time and patience. I will continue learning and improving throughout this project. 1.Database.java
2.DatabaseJoin.java
3. DatabaseJoinMeta.java
|
Database Join now supports named placeholders in SQL using:
You can also mix named and positional placeholders in the same SQL.
Example:
How binding works:
?{customer_id} binds by incoming field name (customer_id).
? binds by positional parameter mapping from the step parameter grid (existing behavior).
SQL is converted to prepared-statement form before execution.