MariusVolkhart / MariusVolkhart/squiggle-sql
Adding Bind variable support for PreparedStatements
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
```
I've done some local work to solve this for myself, can you add this or would
you need to test more extensively.
1. update Literal.java, by adding before abstract method:
public static final String BINDVARIABLE = "?";
2. update StringLiteral.java's method, by adding after null check:
if (Literal.BINDVARIABLE.equals(s)) return s;
Use this is:
select.addCriteria(new MatchCriteria(, , ,
Literal.BINDVARIABLE));
regards
Mark
```
Original issue reported on code.google.com by `mark.gay...@gmail.com` on 11 Jun 2011 at 6:02
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading Literal.java and StringLiteral.java, then inspect how MatchCriteria is used with PreparedStatements. Verify that the requested bind-variable constant and StringLiteral handling preserve the placeholder, and confirm the documented select usage works as intended.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, sql
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100